TWINE: fixed checkCarrier logic

see issue #15386 (https://bugs.scummvm.org/ticket/15386)
This commit is contained in:
Martin Gerhardy 2024-10-12 16:07:45 +02:00
parent 19b3884392
commit 02794f262b

View File

@ -416,8 +416,9 @@ void Actor::checkCarrier(int32 actorIdx) {
return;
}
for (int32 a = 0; a < _engine->_scene->_nbObjets; a++) {
if (actor->_carryBy == actorIdx) {
actor->_carryBy = -1;
ActorStruct *otherActor = _engine->_scene->getActor(a);
if (otherActor->_carryBy == actorIdx) {
otherActor->_carryBy = -1;
}
}
}