diff options
author | rubidium <rubidium@openttd.org> | 2010-05-11 20:48:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-11 20:48:06 +0000 |
commit | be504a6ef0f26b78216699d6995ccc8dee02a5c1 (patch) | |
tree | 97bb83daf3620edf7a128da731e3e43d450d359d /src/station_gui.cpp | |
parent | 26bf9a13deea2da71142a6259ede951e08e75d01 (diff) | |
download | openttd-be504a6ef0f26b78216699d6995ccc8dee02a5c1.tar.xz |
(svn r19788) -Codechange: make FOR_EACH_SET_BIT not change the value of the passed bit variable, i.e. allow expressions as parameter
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index bc0e6066b..8638acd07 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -567,7 +567,7 @@ public: FOR_EACH_SET_BIT(i, this->facilities) { this->RaiseWidget(i + SLW_TRAIN); } - SetBit(this->facilities, widget - SLW_TRAIN); + this->facilities = 1 << (widget - SLW_TRAIN); this->LowerWidget(widget); } this->stations.ForceRebuild(); |