- Blood: fixed use of bad index variable in condCheckSector

This commit is contained in:
Christoph Oelckers 2021-08-28 17:59:33 +02:00
parent 44e0da1212
commit bac1480997
1 changed files with 2 additions and 2 deletions

View File

@ -3570,8 +3570,8 @@ bool condCheckSector(XSPRITE* pXCond, int cmpOp, bool PUSH) {
SectIterator it(objIndex);
while ((nSprite = it.NextIndex()) >= 0)
{
if (!condCmp(sprite[var].type, arg1, arg2, cmpOp)) continue;
else if (PUSH) condPush(pXCond, OBJ_SPRITE, var);
if (!condCmp(sprite[nSprite].type, arg1, arg2, cmpOp)) continue;
else if (PUSH) condPush(pXCond, OBJ_SPRITE, nSprite);
return true;
}
return false;