diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-13 17:05:03 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-13 17:05:03 +0000 |
commit | d19438f858419226a60d3979152c8cf518506a41 (patch) | |
tree | 85fac4cb46e4806505f48c4ff76d5c3075b7c171 | |
parent | 31f8f6a7b50a47a92c2f9afec29a8bb1cbe65f5a (diff) | |
download | openttd-d19438f858419226a60d3979152c8cf518506a41.tar.xz |
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
-rw-r--r-- | console_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c index 9cf286a4f..d1b69ad27 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -170,6 +170,7 @@ static const FiosItem* GetFiosItem(const char* file) { int i; + _saveload_mode = SLD_LOAD_GAME; BuildFileList(); for (i = 0; i < _fios_num; i++) { @@ -227,7 +228,6 @@ DEF_CONSOLE_CMD(ConListFiles) return true; } - _saveload_mode = SLD_LOAD_GAME; BuildFileList(); for (i = 0; i < _fios_num; i++) { |