From bfbdbe688e76ed70d1f76b69d806904ffed0dd41 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 24 Jun 2013 20:58:25 +0000 Subject: (svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft. --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-54-g00ecf