From 3ba0aa71d7f42df4fef97674df361a11b02fa188 Mon Sep 17 00:00:00 2001 From: "Marco Antonio J. Costa" Date: Tue, 28 Jul 2026 07:46:25 -0300 Subject: [PATCH] initialize gubFOVDebugInfoInfo after allocation otherwise it holds garbage --- TileEngine/worlddef.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TileEngine/worlddef.cpp b/TileEngine/worlddef.cpp index d51f70d88..6705b2950 100644 --- a/TileEngine/worlddef.cpp +++ b/TileEngine/worlddef.cpp @@ -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;