aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/res.h')
-rw-r--r--engines/lure/res.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/res.h b/engines/lure/res.h
index 3c27223b1d..c29fd80c30 100644
--- a/engines/lure/res.h
+++ b/engines/lure/res.h
@@ -69,6 +69,7 @@ private:
CharacterScheduleList _charSchedules;
RoomExitIndexedHotspotList _indexedRoomExitHospots;
PausedCharacterList _pausedList;
+ StringList _stringList;
int numCharOffsets;
uint16 *_charOffsets;
@@ -123,6 +124,7 @@ public:
CharacterScheduleList &charSchedules() { return _charSchedules; }
RoomExitIndexedHotspotList &exitHotspots() { return _indexedRoomExitHospots; }
PausedCharacterList &pausedList() { return _pausedList; }
+ StringList &stringList() { return _stringList; }
uint16 getCharOffset(int index) {
if (index >= numCharOffsets)
error("Invalid index %d passed to script engine support data offset list", index);
@@ -152,7 +154,7 @@ public:
const char *getCurrentActionStr() {
if (_currentAction > EXAMINE)
error("Invalid current action %d", _currentAction);
- return actionList[_currentAction];
+ return _stringList.getString(_currentAction);
}
Hotspot *activateHotspot(uint16 hotspotId);
Hotspot *addHotspot(uint16 hotspotId);