summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:06:00 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:06:00 +0000
commitd9ee35006db8ed149e64f636c4b550e076acee5e (patch)
treed0edea42bd6e1be7a6cb15e80350992e5288d71c /src
parent3bae1522c964b01344c358e2157da7f52fd98d4e (diff)
downloadopenttd-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.cpp2
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;