diff options
| -rw-r--r-- | engines/lure/scripts.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 4ffdd56b70..47e2291890 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -407,7 +407,10 @@ void Script::setSupportData(uint16 hotspotId, uint16 index, uint16 v3) {  	uint16 dataId = res.getCharOffset(index);  	CharacterScheduleEntry *entry = res.charSchedules().getEntry(dataId); +	assert(entry != NULL);  	Hotspot *h = res.getActiveHotspot(hotspotId); +	assert(h != NULL); +	assert(!h->currentActions().isEmpty());  	h->currentActions().pop();  	h->currentActions().addFront(DISPATCH_ACTION, entry, h->roomNumber()); | 
