aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2007-11-24 09:47:19 +0000
committerPaul Gilbert2007-11-24 09:47:19 +0000
commita4bbdd229256b4206828b2e1572e5eac4a6ac14f (patch)
tree56d349ebd1e57e8a85483b5a75d4666a203835ee
parent01f32b60b0411d099a168311c53c76b6b75aa275 (diff)
downloadscummvm-rg350-a4bbdd229256b4206828b2e1572e5eac4a6ac14f.tar.gz
scummvm-rg350-a4bbdd229256b4206828b2e1572e5eac4a6ac14f.tar.bz2
scummvm-rg350-a4bbdd229256b4206828b2e1572e5eac4a6ac14f.zip
Fixed call to create puzzled/exclamation voice bubbles
svn-id: r29623
-rw-r--r--engines/lure/hotspots.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 05cc54de79..8bd46dd862 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -159,7 +159,7 @@ Hotspot::Hotspot(Hotspot *character, uint16 objType): _pathFinder(this) {
_destHotspotId = character->hotspotId();
_tickHandler = HotspotTickHandlers::getHandler(PUZZLED_TICK_PROC_ID);
- setAnimation(VOICE_ANIM_INDEX);
+ setAnimationIndex(VOICE_ANIM_INDEX);
setFrameNumber(objType == PUZZLED_ANIM_IDX ? 1 : 2);
character->setFrameCtr(_voiceCtr);
@@ -517,8 +517,10 @@ void Hotspot::endAction() {
//Room::getReference().setCursorState(CS_NONE); **DEBUG**
room.setCursorState((CursorState) ((int) room.cursorState() & 2));
- if (_currentActions.top().hasSupportData())
- _currentActions.top().setSupportData(_currentActions.top().supportData().next());
+ if (_currentActions.top().hasSupportData()) {
+ CharacterScheduleEntry *rec = _currentActions.top().supportData().next();
+ _currentActions.top().setSupportData(rec);
+ }
}
void Hotspot::setDirection(Direction dir) {