(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup

This commit is contained in:
smatz
2008-04-24 09:55:20 +00:00
parent 1a26e29333
commit 26206fa116
11 changed files with 27 additions and 32 deletions

View File

@@ -1663,7 +1663,7 @@ bool ProcessOrders(Vehicle *v)
case VEH_AIRCRAFT:
case VEH_SHIP:
InvalidateWindowClasses(v->GetVehicleListWindowClass());
InvalidateWindowClasses(GetWindowClassForVehicleType(v->type));
break;
}