diff options
author | rubidium <rubidium@openttd.org> | 2013-11-23 18:06:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-23 18:06:00 +0000 |
commit | d9ee35006db8ed149e64f636c4b550e076acee5e (patch) | |
tree | d0edea42bd6e1be7a6cb15e80350992e5288d71c /src | |
parent | 3bae1522c964b01344c358e2157da7f52fd98d4e (diff) | |
download | openttd-d9ee35006db8ed149e64f636c4b550e076acee5e.tar.xz |
(svn r26064) -Fix: possible uninitialised array when loading a broken TT-ish savegame
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/oldloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index ff911a899..83fc58ebf 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -244,7 +244,7 @@ static inline bool CheckOldSavegameType(FILE *f, char *temp, const char *last, u static SavegameType DetermineOldSavegameType(FILE *f, char *title, const char *last) { assert_compile(TTD_HEADER_SIZE >= TTO_HEADER_SIZE); - char temp[TTD_HEADER_SIZE]; + char temp[TTD_HEADER_SIZE] = "Unknown"; SavegameType type = SGT_TTO; |