aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-10-13 05:00:19 +0000
committerTravis Howell2006-10-13 05:00:19 +0000
commit9d96bdfe9ae98593116474dc11c917bb0e7f51ed (patch)
tree80c0c861b158375f5d0cdbb3d4b0d08767c51855
parent71c33847933c8106096fc677b6dd609c7b2ec5e3 (diff)
downloadscummvm-rg350-9d96bdfe9ae98593116474dc11c917bb0e7f51ed.tar.gz
scummvm-rg350-9d96bdfe9ae98593116474dc11c917bb0e7f51ed.tar.bz2
scummvm-rg350-9d96bdfe9ae98593116474dc11c917bb0e7f51ed.zip
Fix regressions when drawing icons in FF
svn-id: r24287
-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();