summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-16 17:05:17 +0000
committerskidd13 <skidd13@openttd.org>2008-06-16 17:05:17 +0000
commit6b8a758339b18d6323b4458f3402aead93b5e0cd (patch)
tree319f50b5b15c8e595d0cbf7f855fc6301b70a8b5 /src/town_gui.cpp
parent617e1f16c0ed95162ee4c07ceadb0b9460327237 (diff)
downloadopenttd-6b8a758339b18d6323b4458f3402aead93b5e0cd.tar.xz
(svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 77e84aafa..241b60d6d 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -545,7 +545,7 @@ public:
SetVScrollCount(this, this->towns.Length());
this->DrawWidgets();
- this->DrawSortButtonState(this->towns.sort_type == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
+ this->DrawSortButtonState(this->towns.SortType() == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
{
int n = 0;