overlaytopleft/games-fps/gzdoom/files/0042-Use-simpler-constructor-for-TArray-in-FBlockThingsIt.patch

36 lines
1005 B
Diff

From e77c9f5a0e8ccc71b726050625082ada156b2672 Mon Sep 17 00:00:00 2001
From: RaveYard <MrRaveYard@gmail.com>
Date: Sun, 19 Mar 2023 03:41:27 +0100
Subject: [PATCH 42/51] Use simpler constructor for TArray in
FBlockThingsIterator
---
src/playsim/p_maputl.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/playsim/p_maputl.cpp b/src/playsim/p_maputl.cpp
index aca40e741..f883cbc91 100644
--- a/src/playsim/p_maputl.cpp
+++ b/src/playsim/p_maputl.cpp
@@ -889,7 +889,7 @@ void FMultiBlockLinesIterator::Reset()
//===========================================================================
FBlockThingsIterator::FBlockThingsIterator(FLevelLocals *l)
-: DynHash(0)
+: DynHash()
{
Level = l;
minx = maxx = 0;
@@ -899,7 +899,7 @@ FBlockThingsIterator::FBlockThingsIterator(FLevelLocals *l)
}
FBlockThingsIterator::FBlockThingsIterator(FLevelLocals *l, int _minx, int _miny, int _maxx, int _maxy)
-: DynHash(0)
+: DynHash()
{
Level = l;
minx = _minx;
--
2.39.3