diff options
author | Andrei Prykhodko | 2018-06-23 16:27:48 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 63fc5ad79b27700b882f977af2304733ee622a62 (patch) | |
tree | 3e805cb4c428a06294e8d5137e6c47b3002005d1 | |
parent | 633649398f3901b00bd8de7bc113f52971ccd940 (diff) | |
download | scummvm-rg350-63fc5ad79b27700b882f977af2304733ee622a62.tar.gz scummvm-rg350-63fc5ad79b27700b882f977af2304733ee622a62.tar.bz2 scummvm-rg350-63fc5ad79b27700b882f977af2304733ee622a62.zip |
PINK: fix setting cursor with name which wasn't in disasm
-rw-r--r-- | engines/pink/cursor_mgr.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/pink/cursor_mgr.cpp b/engines/pink/cursor_mgr.cpp index fe70c9fc45..feb997b560 100644 --- a/engines/pink/cursor_mgr.cpp +++ b/engines/pink/cursor_mgr.cpp @@ -69,12 +69,14 @@ void CursorMgr::setCursor(const Common::String &cursorName, const Common::Point index = kExitLeftCursor; else if (cursorName == kCursorNameExitRight) index = kExitRightCursor; - else if (cursorName == kCursorNameExitForward || cursorName == kCursorNameExitUp) + else if (cursorName == kCursorNameExitForward || cursorName == kCursorNameExitUp || cursorName == "Exit") index = kExitForwardCursor; else if (cursorName == kCursorNameExitBackWards) index = kExitDownCursor; - else - error("%s UNKNOWN CURSOR", cursorName.c_str()); + else { + warning("%s UNKNOWN CURSOR", cursorName.c_str()); + index = kExitForwardCursor; + } setCursor(index, point, ""); } |