initialize gubFOVDebugInfoInfo after allocation

otherwise it holds garbage
This commit is contained in:
Marco Antonio J. Costa
2026-07-28 07:55:10 -03:00
committed by majcosta
parent 3a3d42d2a6
commit 3ba0aa71d7
+1
View File
@@ -4636,6 +4636,7 @@ void SetWorldSize(INT32 nWorldRows, INT32 nWorldCols)
if(gubFOVDebugInfoInfo)
MemFree(gubFOVDebugInfoInfo);
gubFOVDebugInfoInfo = (UINT8*)MemAlloc(WORLD_MAX);
memset(gubFOVDebugInfoInfo, 0, WORLD_MAX);
#endif
dirDelta[0]= -WORLD_COLS;