mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
fix uninitialized usage of output in P_LoadNodes_ZDBSP()
This commit is contained in:
parent
af535939b9
commit
0fb24e322f
@ -269,7 +269,7 @@ void P_LoadNodes_ZDBSP (int lump, boolean compressed)
|
||||
{
|
||||
byte *data;
|
||||
unsigned int i;
|
||||
byte *output;
|
||||
byte *output = NULL;
|
||||
|
||||
unsigned int orgVerts, newVerts;
|
||||
unsigned int numSubs, currSeg;
|
||||
@ -496,7 +496,7 @@ void P_LoadNodes_ZDBSP (int lump, boolean compressed)
|
||||
}
|
||||
}
|
||||
|
||||
if (compressed)
|
||||
if (compressed && output)
|
||||
Z_Free(output);
|
||||
else
|
||||
W_CacheLumpNum(lump, PU_CACHE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user