diff options
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r-- | scumm/script_v5.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 6430843e18..0e06bf0d0b 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1507,6 +1507,8 @@ void ScummEngine_v5::o5_loadRoomWithEgo() { VAR(VAR_WALKTO_OBJ) = 0; if (_version <= 4) { + if (whereIsObject(obj) != WIO_ROOM) + error("startScene: Object %d is not in room %d", obj, _currentRoom); if (!_egoPositioned) { getObjectXYPos(obj, x2, y2, dir); a->putActor(x2, y2, _currentRoom); |