aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/hotspot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/hotspot.cpp')
-rw-r--r--engines/m4/hotspot.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/m4/hotspot.cpp b/engines/m4/hotspot.cpp
index 7de66b375b..656d2300f4 100644
--- a/engines/m4/hotspot.cpp
+++ b/engines/m4/hotspot.cpp
@@ -51,6 +51,7 @@ HotSpot::HotSpot(int x1, int y1, int x2, int y2) :
}
HotSpot::~HotSpot() {
+ free(_vocab);
}
void HotSpot::setRect(int x1, int y1, int x2, int y2) {
@@ -273,10 +274,10 @@ void HotSpotList::loadHotSpots(Common::SeekableReadStream* hotspotStream, int ho
currentHotSpot->setVerb("");
if (currentHotSpot->getVocabID() > 0)
- currentHotSpot->setVocab(_vm->_globals->getVocab(currentHotSpot->getVocabID() - 1));
+ currentHotSpot->setVocab(_vm->_globals->getVocab(currentHotSpot->getVocabID()));
if (currentHotSpot->getVerbID() > 0)
- currentHotSpot->setVerb(_vm->_globals->getVocab(currentHotSpot->getVerbID() - 1));
+ currentHotSpot->setVerb(_vm->_globals->getVocab(currentHotSpot->getVerbID()));
}
}
}