aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-07-21 10:40:39 -0700
committerPaul Gilbert2019-09-29 15:08:52 -0700
commit32c9deefb7331ae1c4f25f99b44e71189f977b76 (patch)
tree1f5765f5d0831b427089c4cfc1f828fbc3e2d9ac /engines/glk
parent30bf05479a8d4b9e63b243b0f1acac3fb946da32 (diff)
downloadscummvm-rg350-32c9deefb7331ae1c4f25f99b44e71189f977b76.tar.gz
scummvm-rg350-32c9deefb7331ae1c4f25f99b44e71189f977b76.tar.bz2
scummvm-rg350-32c9deefb7331ae1c4f25f99b44e71189f977b76.zip
GLK: QUEST: Fix infinite recursion
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/quest/reserved_words.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/quest/reserved_words.h b/engines/glk/quest/reserved_words.h
index 5d736078b7..52c3e2191a 100644
--- a/engines/glk/quest/reserved_words.h
+++ b/engines/glk/quest/reserved_words.h
@@ -59,7 +59,7 @@ public:
* Returns true if the passed string is a reserved word
*/
bool has(const String &s) const {
- return _data.contains(s) && (*this)[s];
+ return _data.contains(s) && _data[s];
}
/**