diff options
author | smatz <smatz@openttd.org> | 2009-01-18 22:44:53 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-18 22:44:53 +0000 |
commit | 3bceaf41b452e166a0cdff7ebb4febd631004790 (patch) | |
tree | c1ba5c796a2ca418d5f45c2fc31ed5c459511b92 /src/openttd.cpp | |
parent | a46245f21f1f81709e3d093c6fcbca213c207e43 (diff) | |
download | openttd-3bceaf41b452e166a0cdff7ebb4febd631004790.tar.xz |
(svn r15144) -Codechange: make sure we don't run out of bounds while determining old savegame name
Note this can't happen in current code
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 8fd819aef..703bfdb7c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -514,7 +514,7 @@ int ttd_main(int argc, char *argv[]) /* if the file doesn't exist or it is not a valid savegame, let the saveload code show an error */ const char *t = strrchr(_file_to_saveload.name, '.'); if (t != NULL) { - FiosType ft = FiosGetSavegameListCallback(SLD_LOAD_GAME, _file_to_saveload.name, t, NULL); + FiosType ft = FiosGetSavegameListCallback(SLD_LOAD_GAME, _file_to_saveload.name, t, NULL, NULL); if (ft != FIOS_TYPE_INVALID) SetFiosType(ft); } |