mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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)
|
if(gubFOVDebugInfoInfo)
|
||||||
MemFree(gubFOVDebugInfoInfo);
|
MemFree(gubFOVDebugInfoInfo);
|
||||||
gubFOVDebugInfoInfo = (UINT8*)MemAlloc(WORLD_MAX);
|
gubFOVDebugInfoInfo = (UINT8*)MemAlloc(WORLD_MAX);
|
||||||
|
memset(gubFOVDebugInfoInfo, 0, WORLD_MAX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
dirDelta[0]= -WORLD_COLS;
|
dirDelta[0]= -WORLD_COLS;
|
||||||
|
|||||||
Reference in New Issue
Block a user