mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-02 07:28:32 +00:00
Fix for bug #2954279 "KYRA: Error when loading non-existent savegame".
svn-id: r48089
This commit is contained in:
parent
8502d9248e
commit
049b4384bc
@ -266,7 +266,8 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag)
|
|||||||
int saveLoadSlot = 9 - (event.kbd.keycode - Common::KEYCODE_0) + 990;
|
int saveLoadSlot = 9 - (event.kbd.keycode - Common::KEYCODE_0) + 990;
|
||||||
|
|
||||||
if (event.kbd.flags == Common::KBD_CTRL) {
|
if (event.kbd.flags == Common::KBD_CTRL) {
|
||||||
loadGameStateCheck(saveLoadSlot);
|
if (saveFileLoadable(saveLoadSlot))
|
||||||
|
loadGameStateCheck(saveLoadSlot);
|
||||||
_eventList.clear();
|
_eventList.clear();
|
||||||
breakLoop = true;
|
breakLoop = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user