(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft.

This commit is contained in:
frosch 2013-06-24 20:58:25 +00:00
parent abb5a13f1e
commit bfbdbe688e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}