mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(svn r8425) -Fix
Do not try to invalidate a window which just got deleted. It is pointless
This commit is contained in:
parent
8a70d42603
commit
e0df42b3a3
@ -501,7 +501,6 @@ static void ClearCrashedStation(Vehicle *v)
|
|||||||
static void RoadVehDelete(Vehicle *v)
|
static void RoadVehDelete(Vehicle *v)
|
||||||
{
|
{
|
||||||
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
|
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
|
||||||
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
|
||||||
|
|
||||||
RebuildVehicleLists();
|
RebuildVehicleLists();
|
||||||
InvalidateWindow(WC_COMPANY, v->owner);
|
InvalidateWindow(WC_COMPANY, v->owner);
|
||||||
|
Loading…
Reference in New Issue
Block a user