Polymer: Fix a potential uninitialized mem read in debug msg when in void space.

git-svn-id: https://svn.eduke32.com/eduke32@2565 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-28 19:45:05 +00:00
parent a7ec51e375
commit 994bdd4759

View file

@ -1036,7 +1036,12 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t da
(daposz < cursectceilz)) (daposz < cursectceilz))
{ {
if (!editstatus && pr_verbosity>=1) if (!editstatus && pr_verbosity>=1)
OSD_Printf("PR : EXT sec=%d z=%d (%d, %d)\n", dacursectnum, daposz, cursectflorz, cursectceilz); {
if ((unsigned)dacursectnum < (unsigned)numsectors)
OSD_Printf("PR : EXT sec=%d z=%d (%d, %d)\n", dacursectnum, daposz, cursectflorz, cursectceilz);
else
OSD_Printf("PR : EXT sec=%d z=%d", dacursectnum, daposz);
}
curmodelviewmatrix = rootmodelviewmatrix; curmodelviewmatrix = rootmodelviewmatrix;
i = numsectors-1; i = numsectors-1;