aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/res.cpp')
-rw-r--r--engines/lure/res.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp
index c33ad49ef4..bd978ce0b9 100644
--- a/engines/lure/res.cpp
+++ b/engines/lure/res.cpp
@@ -656,6 +656,11 @@ Hotspot *Resources::addHotspot(uint16 hotspotId) {
// Default characters to facing upwards until they start moving
hotspot->setDirection(UP);
hotspot->setCharRectY(0);
+
+ // When reactivating an NPC, ensure that their previous state wasn't PROCESSING_PATH, since
+ // the pause has destroyed the previously decided destination position
+ if (!hData->npcSchedule.isEmpty() && (hData->npcSchedule.top().action() == PROCESSING_PATH))
+ hData->npcSchedule.top().setAction(DISPATCH_ACTION);
}
return hotspot;