summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:50:22 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:50:22 +0000
commitbc08fe7c5f449ff12bd7c76553781f59a325507f (patch)
tree324fc77e71364d0ad84dd6009c0ff7fb709ac5fb /src/fios_gui.cpp
parent0bf3372882f5c5de67edc68da6bed2ddc582d760 (diff)
downloadopenttd-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.cpp4
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