Fix tbtr refit button crashing if new template window is empty.

This commit is contained in:
Jonathan G Rennison
2016-02-14 03:04:53 +00:00
parent faa72e9615
commit b74790187a

View File

@@ -244,7 +244,9 @@ public:
break; break;
} }
case TCW_REFIT: { case TCW_REFIT: {
if (virtual_train != NULL) {
ShowVehicleRefitWindow(virtual_train, INVALID_VEH_ORDER_ID, this, false, true); ShowVehicleRefitWindow(virtual_train, INVALID_VEH_ORDER_ID, this, false, true);
}
break; break;
} }
} }