aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/agi.h2
-rw-r--r--engines/agi/saveload.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h
index 58fb173575..e7ca9d336f 100644
--- a/engines/agi/agi.h
+++ b/engines/agi/agi.h
@@ -444,7 +444,7 @@ struct AgiGame {
// internal flags
bool playerControl; /**< player is in control */
- int exitAllLogics; /**< break cycle after new.room */
+ bool exitAllLogics; /**< break cycle after new.room */
bool pictureShown; /**< show.pic has been issued */
#define ID_AGDS 0x00000001
#define ID_AMIGA 0x00000002
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index 90e42ca613..3d67db7c7c 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -762,7 +762,7 @@ int AgiEngine::doLoad(int slot, bool showMessages) {
int result = loadGame(fileName);
if (result == errOK) {
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
} else {
if (showMessages)
@@ -1010,7 +1010,7 @@ void AgiEngine::checkQuickLoad() {
_sound->stopSound();
if (loadGame(saveNameBuffer, false) == errOK) { // Do not check game id
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
}
}
@@ -1023,7 +1023,7 @@ Common::Error AgiEngine::loadGameState(int slot) {
_sound->stopSound();
if (loadGame(saveLoadSlot) == errOK) {
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
return Common::kNoError;
} else {