aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2015-11-16 20:54:17 -0500
committerPaul Gilbert2015-11-16 20:54:17 -0500
commit594be43d793545b3404c4d9adedd89992af4e160 (patch)
treebcfab9957849b330358fc50f127250dfe685e4d2 /engines/lure
parentf8b36bf8551c374616b88773b3b03e8c73092c8d (diff)
downloadscummvm-rg350-594be43d793545b3404c4d9adedd89992af4e160.tar.gz
scummvm-rg350-594be43d793545b3404c4d9adedd89992af4e160.tar.bz2
scummvm-rg350-594be43d793545b3404c4d9adedd89992af4e160.zip
LURE: Fix spelling of Observar in Spanish version
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/res.cpp4
-rw-r--r--engines/lure/res_struct.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp
index 6b2705463d..7a79f48b87 100644
--- a/engines/lure/res.cpp
+++ b/engines/lure/res.cpp
@@ -44,6 +44,10 @@ Resources::Resources() : _rnd(LureEngine::getReference().rnd()) {
MemoryBlock *mb = Disk::getReference().getEntry(STRING_LIST_RESOURCE_ID);
_stringList.load(mb);
delete mb;
+
+ // WORKAROUND: In Spanish the look "Obsevar" should be "Observar"
+ if (!Common::String(_stringList.getString(LOOK)).compareTo("Obsevar"))
+ _stringList.setString(LOOK, "Observar");
}
Resources::~Resources() {
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h
index 72cfa2ff99..685c55ab13 100644
--- a/engines/lure/res_struct.h
+++ b/engines/lure/res_struct.h
@@ -863,6 +863,7 @@ public:
}
const char *getString(Action action) { return getString((int) action - 1); }
const char *getString(StringEnum sEnum) { return getString((int) sEnum); }
+ void setString(Action action, const Common::String &s) { _entries[(int)action - 1] = s; }
};
// The following class holds the field list used by the script engine as