aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/agos.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index 695806dc5d..7829b45c17 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -2296,11 +2296,10 @@ int AGOSEngine::go() {
addTimeEvent(0, 1);
openGameFile();
- if (getFileName(GAME_ICONFILE) != NULL) {
- if (getGameType() == GType_FF)
- loadIconData();
- else
- loadIconFile();
+ if (getGameType() == GType_FF) {
+ loadIconData();
+ } else if (getFileName(GAME_ICONFILE) != NULL) {
+ loadIconFile();
}
vc34_setMouseOff();