aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/stringtable.h
diff options
context:
space:
mode:
authorBorja Lorente2016-06-28 20:56:55 +0200
committerBorja Lorente2016-08-14 18:41:15 +0200
commit0485483254e9ce94acfd4750122a466984227904 (patch)
tree4a48b4adb66ba658a6da038cffa904598d37b108 /engines/macventure/stringtable.h
parent08588eb6f914fc77aa443f3844681787bde02949 (diff)
downloadscummvm-rg350-0485483254e9ce94acfd4750122a466984227904.tar.gz
scummvm-rg350-0485483254e9ce94acfd4750122a466984227904.tar.bz2
scummvm-rg350-0485483254e9ce94acfd4750122a466984227904.zip
MACVENTURE: Minor fixes and skull rising
Diffstat (limited to 'engines/macventure/stringtable.h')
-rw-r--r--engines/macventure/stringtable.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/macventure/stringtable.h b/engines/macventure/stringtable.h
index 87ec9775cb..ffb9d375ab 100644
--- a/engines/macventure/stringtable.h
+++ b/engines/macventure/stringtable.h
@@ -52,8 +52,13 @@ public:
}
- const Common::Array<Common::String> *getStrings() {
- return &_strings;
+ const Common::Array<Common::String> &getStrings() {
+ return _strings;
+ }
+
+ Common::String getString(uint ndx) {
+ assert(ndx < _strings.size());
+ return _strings[ndx];
}
private: