diff options
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/res_struct.cpp | 2 | ||||
-rw-r--r-- | engines/lure/scripts.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index 1d6e0ea04f..8c68462bf6 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -420,6 +420,7 @@ HotspotData::HotspotData(HotspotResource *rec) { void HotspotData::saveToStream(WriteStream *stream) { // Write out the basic fields + stream->writeUint16LE(nameId); stream->writeUint16LE(descId); stream->writeUint16LE(descId2); stream->writeUint32LE(actions); @@ -460,6 +461,7 @@ void HotspotData::saveToStream(WriteStream *stream) { void HotspotData::loadFromStream(ReadStream *stream) { // Read in the basic fields + nameId = stream->readUint16LE(); descId = stream->readUint16LE(); descId2 = stream->readUint16LE(); actions = stream->readUint32LE(); diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index f9a395697c..6e651fbc68 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -364,7 +364,7 @@ void Script::transformPlayer(uint16 v1, uint16 v2, uint16 v3) { hotspot->startY = player->startY - 10; Hotspot *activeHotspot = res.addHotspot(TRANSFORM_ID); - activeHotspot->setFrameNumber(0); + activeHotspot->setActionCtr(0); activeHotspot->setHotspotScript(0x630); } |