aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/hotspots.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 8bd46dd862..32b6f8d581 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -223,7 +223,8 @@ void Hotspot::setAnimation(uint16 newAnimId) {
tempAnim = NULL;
else {
tempAnim = r.getAnimation(newAnimId);
- assert(tempAnim != NULL);
+ if (tempAnim == NULL)
+ error("Hotspot %xh tried to set non-existant Animation Id: %xh", _hotspotId, newAnimId);
}
setAnimation(tempAnim);