mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
TWINE: fixed checkCarrier logic
see issue #15386 (https://bugs.scummvm.org/ticket/15386)
This commit is contained in:
parent
19b3884392
commit
02794f262b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user