mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
initialize gubFOVDebugInfoInfo after allocation
otherwise it holds garbage
This commit is contained in:
committed by
majcosta
parent
3a3d42d2a6
commit
3ba0aa71d7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user