From bac1480997a6871bf6471fafde8dca9c46408b94 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 28 Aug 2021 17:59:33 +0200 Subject: [PATCH] - Blood: fixed use of bad index variable in condCheckSector --- source/games/blood/src/nnexts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index 6fed49f2d..e419aadb5 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -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;