From 594be43d793545b3404c4d9adedd89992af4e160 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 16 Nov 2015 20:54:17 -0500 Subject: LURE: Fix spelling of Observar in Spanish version --- engines/lure/res.cpp | 4 ++++ engines/lure/res_struct.h | 1 + 2 files changed, 5 insertions(+) (limited to 'engines') 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 -- cgit v1.2.3