diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:50:22 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:50:22 +0000 |
commit | bc08fe7c5f449ff12bd7c76553781f59a325507f (patch) | |
tree | 324fc77e71364d0ad84dd6009c0ff7fb709ac5fb /src/fios_gui.cpp | |
parent | 0bf3372882f5c5de67edc68da6bed2ddc582d760 (diff) | |
download | openttd-bc08fe7c5f449ff12bd7c76553781f59a325507f.tar.xz |
(svn r27641) -Codechange: Fold the _fios_items file list vector into its own class.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 50a6711c6..b01954c55 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -196,7 +196,7 @@ const TextColour _fios_colours[] = { void BuildFileList(SaveLoadDialogMode mode) { _fios_path_changed = true; - FiosFreeSavegameList(); + _fios_items.Clear(); switch (mode) { case SLD_LOAD_SCENARIO: @@ -327,7 +327,7 @@ public: if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) { DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE); } - FiosFreeSavegameList(); + _fios_items.Clear(); } virtual void DrawWidget(const Rect &r, int widget) const |