mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
This commit is contained in:
@@ -1663,7 +1663,7 @@ bool ProcessOrders(Vehicle *v)
|
||||
|
||||
case VEH_AIRCRAFT:
|
||||
case VEH_SHIP:
|
||||
InvalidateWindowClasses(v->GetVehicleListWindowClass());
|
||||
InvalidateWindowClasses(GetWindowClassForVehicleType(v->type));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user