diff options
author | smatz <smatz@openttd.org> | 2008-09-15 23:50:12 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-15 23:50:12 +0000 |
commit | dce7bec2d33b404b81262a6f46dd4f8be10d46e6 (patch) | |
tree | 43bc87c19afa58e7cc2466e59db370179a74d251 | |
parent | 5f4ff33ce340fc71e17abbdede06226dd4e56a54 (diff) | |
download | openttd-dce7bec2d33b404b81262a6f46dd4f8be10d46e6.tar.xz |
(svn r14339) -Fix (r13731): crash when loading the intro game failed
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index afbe2628a..a06b0137c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -363,10 +363,12 @@ static void LoadIntroGame() if (SaveOrLoad("opntitle.dat", SL_LOAD, DATA_DIR) != SL_OK) { GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world. WaitTillGeneratedWorld(); + SetLocalPlayer(PLAYER_SPECTATOR); + } else { + SetLocalPlayer(PLAYER_FIRST); } _pause_game = 0; - SetLocalPlayer(PLAYER_FIRST); _cursor.fix_at = false; MarkWholeScreenDirty(); |