aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/pink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/pink.cpp')
-rw-r--r--engines/pink/pink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp
index 4c5b7cef89..5ced8cb0c1 100644
--- a/engines/pink/pink.cpp
+++ b/engines/pink/pink.cpp
@@ -186,7 +186,8 @@ void PinkEngine::loadModule(int index) {
}
bool PinkEngine::checkValueOfVariable(Common::String &variable, Common::String &value) {
- assert(_variables.contains(variable));
+ if (!_variables.contains(variable))
+ return value == "UNDEFINED";
return _variables[variable] == value;
}