summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-24 20:58:25 +0000
committerfrosch <frosch@openttd.org>2013-06-24 20:58:25 +0000
commitbfbdbe688e76ed70d1f76b69d806904ffed0dd41 (patch)
treeaefde1d1996b93c1e936ff3f52afc3b007552192 /src
parentabb5a13f1eba08433885f695abb09d3bc2122ee8 (diff)
downloadopenttd-bfbdbe688e76ed70d1f76b69d806904ffed0dd41.tar.xz
(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft.
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 508a35064..2b8d4926f 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -795,7 +795,7 @@ private:
void UpdateAutoRefitState()
{
this->can_do_autorefit = false;
- for (const Vehicle *w = this->vehicle; w != NULL; w = w->Next()) {
+ for (const Vehicle *w = this->vehicle; w != NULL; w = w->IsGroundVehicle() ? w->Next() : NULL) {
if (HasBit(Engine::Get(w->engine_type)->info.misc_flags, EF_AUTO_REFIT)) this->can_do_autorefit = true;
}
}