- Blood: Add nullptr check to OperatePath() to fix crash in Eviction's sgarage.map.

This commit is contained in:
Mitchell Richters 2022-01-03 10:19:08 +11:00
parent bc6dd4ae3e
commit aee4388a03

View file

@ -1572,7 +1572,7 @@ void OperatePath(sectortype* pSector, EVENT event)
DBloodActor* actor;
assert(pSector);
auto pXSector = &pSector->xs();
if (!pXSector->marker0) return;
if (!pXSector->marker0 || !pXSector->marker1) return;
auto marker0 = pXSector->marker0;
auto marker1 = pXSector->marker1;
int nId = marker1->xspr.data2;