diff options
Diffstat (limited to 'engines/toon')
-rw-r--r-- | engines/toon/toon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 78e526c205..fdb69c4cf3 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -204,7 +204,7 @@ void ToonEngine::parseInput() { if (event.kbd.flags & Common::KBD_ALT) { int32 slotNum = event.kbd.ascii - '0'; - if (slotNum >= 0 && slotNum <= 9) { + if (slotNum >= 0 && slotNum <= 9 && canSaveGameStateCurrently()) { if (saveGame(slotNum, Common::String())) { // ok char buf[256]; @@ -224,7 +224,7 @@ void ToonEngine::parseInput() { if (event.kbd.flags & Common::KBD_CTRL) { int32 slotNum = event.kbd.ascii - '0'; - if (slotNum >= 0 && slotNum <= 9) { + if (slotNum >= 0 && slotNum <= 9 && canLoadGameStateCurrently()) { if (loadGame(slotNum)) { // ok char buf[256]; |