forked from mirror/OpenTTD
(svn r22245) -Codechange: Make vehicle lists handle command-/GUI-scope invalidations themself.
This commit is contained in:
@@ -2270,7 +2270,7 @@ void Vehicle::RemoveFromShared()
|
||||
} else if (were_first) {
|
||||
/* If we were the first one, update to the new first one.
|
||||
* Note: FirstShared() is already the new first */
|
||||
InvalidateWindowData(GetWindowClassForVehicleType(this->type), vli.Pack(), this->FirstShared()->index | (1U << 31), true);
|
||||
InvalidateWindowData(GetWindowClassForVehicleType(this->type), vli.Pack(), this->FirstShared()->index | (1U << 31));
|
||||
}
|
||||
|
||||
this->next_shared = NULL;
|
||||
|
Reference in New Issue
Block a user