aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2008-01-12 06:34:11 +0000
committerPaul Gilbert2008-01-12 06:34:11 +0000
commita5a4a6fde53a233cec068fb4c44cc2e62353cb7b (patch)
treeaf2df6e2d6348159b1b1c4edc28b32b5d6c401fa
parentdde154c3edee7f2673fe59de4475f931e03fd812 (diff)
downloadscummvm-rg350-a5a4a6fde53a233cec068fb4c44cc2e62353cb7b.tar.gz
scummvm-rg350-a5a4a6fde53a233cec068fb4c44cc2e62353cb7b.tar.bz2
scummvm-rg350-a5a4a6fde53a233cec068fb4c44cc2e62353cb7b.zip
Bugfix for actors getting stuck (losing their schedule)
svn-id: r30435
-rw-r--r--engines/lure/hotspots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 30b17bc7ad..44157e45ab 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -3960,7 +3960,7 @@ void HotspotTickHandlers::npcRoomChange(Hotspot &h) {
}
h.currentActions().top().setRoomNumber(h.roomNumber());
- } else if (h.blockedOffset() != 0) {
+ } else if ((h.blockedOffset() != 0) && (h.blockedOffset() != 0xffff)) {
// Only current action on stack - and there is a block handler
CharacterScheduleEntry *entry = res.charSchedules().getEntry(h.blockedOffset());
h.currentActions().top().setSupportData(entry);