- missing null check in Blood's map loader.

This commit is contained in:
Christoph Oelckers 2021-12-10 21:58:58 +01:00
parent 5e09a43e91
commit b4a968841a

View file

@ -271,7 +271,7 @@ void dbLoadMap(const char* pPath, int* pX, int* pY, int* pZ, short* pAngle, sect
#if 1 // bad, bad hack, just for making Polymost happy...
PolymostAllocFakeSector();
#endif
* pSector = &sector[mapHeader.sect];
* pSector = mapHeader.sect >= 0? &sector[mapHeader.sect] : nullptr;
if (encrypted)
{