TBTR: Handle template being deleted during edit.

This commit is contained in:
Jonathan G Rennison
2016-02-15 19:28:14 +00:00
parent 98fc4493c8
commit 5b6560b73b
2 changed files with 21 additions and 17 deletions

View File

@@ -1186,6 +1186,7 @@ CommandCost CmdDeleteTemplateVehicle(TileIndex tile, DoCommandFlag flags, uint32
delete del;
InvalidateWindowClassesData(WC_CREATE_TEMPLATE, 0);
InvalidateWindowClassesData(WC_TEMPLATEGUI_MAIN, 0);
}