mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r26064) -Fix: possible uninitialised array when loading a broken TT-ish savegame
This commit is contained in:
parent
3bae1522c9
commit
d9ee35006d
@ -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)
|
static SavegameType DetermineOldSavegameType(FILE *f, char *title, const char *last)
|
||||||
{
|
{
|
||||||
assert_compile(TTD_HEADER_SIZE >= TTO_HEADER_SIZE);
|
assert_compile(TTD_HEADER_SIZE >= TTO_HEADER_SIZE);
|
||||||
char temp[TTD_HEADER_SIZE];
|
char temp[TTD_HEADER_SIZE] = "Unknown";
|
||||||
|
|
||||||
SavegameType type = SGT_TTO;
|
SavegameType type = SGT_TTO;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user