From dbc709a140fc2d01d35dcd3515c45ea9621fe18b Mon Sep 17 00:00:00 2001 From: whitertandrek Date: Tue, 27 Mar 2018 14:52:19 +0300 Subject: PINK: fixes to get first game scene of Hokus Pokus loaded and hack for Peril intro sprite, which has wrong transparent colour index --- engines/pink/objects/pages/game_page.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/pink/objects/pages') diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp index 8711a7ea66..5ff7f0bdc3 100644 --- a/engines/pink/objects/pages/game_page.cpp +++ b/engines/pink/objects/pages/game_page.cpp @@ -115,7 +115,8 @@ Module *GamePage::getModule() const { } bool GamePage::checkValueOfVariable(Common::String &variable, Common::String &value) { - assert(_variables.contains(variable)); + if (!_variables.contains(variable)) + return value == "UNDEFINED"; return _variables[variable] == value; } -- cgit v1.2.3