summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-30 14:39:59 +0000
committerrubidium <rubidium@openttd.org>2009-08-30 14:39:59 +0000
commit0007a599c36fbf91b93f04d540301130055606e8 (patch)
treed018732c9a08f8f2509cf366de69c22bd3f704e8
parente8433f6d48a801d6c008b8c61e6ea4dff525b2c1 (diff)
downloadopenttd-0007a599c36fbf91b93f04d540301130055606e8.tar.xz
(svn r17321) -Codechange: minor coding style fixes for the town directory
-rw-r--r--src/town_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index fb10b6814..470d9ab0b 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -562,7 +562,7 @@ private:
SetVScrollCount(this, this->towns.Length()); // Update scrollbar as well.
}
/* Always sort the towns. */
- last_town = NULL;
+ this->last_town = NULL;
this->towns.Sort();
}
@@ -599,7 +599,7 @@ public:
TownDirectoryWindow(const WindowDesc *desc) : Window()
{
this->towns.SetListing(this->last_sorting);
- this->towns.SetSortFuncs(this->sorter_funcs);
+ this->towns.SetSortFuncs(TownDirectoryWindow::sorter_funcs);
this->towns.ForceRebuild();
this->BuildSortTownList();