summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
committerrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
commit9defec78767131d1dc9765c8943ae3bb165e8713 (patch)
tree4fbae4aa35ef120179cf9069c2eb93fa136ed7a2 /src/group_gui.cpp
parentaab9e191f5612d0ddf309d8ec9de109218babd32 (diff)
downloadopenttd-9defec78767131d1dc9765c8943ae3bb165e8713.tar.xz
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 601cc2b0a..65c7959fb 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -286,8 +286,8 @@ struct VehicleGroupWindow : public Window, public VehicleListBase {
virtual void OnInvalidateData(int data)
{
- this->vehicles.flags |= VL_REBUILD;
- this->groups.flags |= VL_REBUILD;
+ this->vehicles.flags |= (data == 0 ? VL_REBUILD : VL_RESORT);
+ this->groups.flags |= (data == 0 ? VL_REBUILD : VL_RESORT);
if (!(IsAllGroupID(this->group_sel) || IsDefaultGroupID(this->group_sel) || IsValidGroupID(this->group_sel))) {
this->group_sel = ALL_GROUP;
HideDropDownMenu(this);