TBTR: Handle template being deleted during edit.
This commit is contained in:
@@ -1186,6 +1186,7 @@ CommandCost CmdDeleteTemplateVehicle(TileIndex tile, DoCommandFlag flags, uint32
|
||||
|
||||
delete del;
|
||||
|
||||
InvalidateWindowClassesData(WC_CREATE_TEMPLATE, 0);
|
||||
InvalidateWindowClassesData(WC_TEMPLATEGUI_MAIN, 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user