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

pull/6/merge
Jonathan G Rennison 8 years ago
parent faa72e9615
commit b74790187a

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

Loading…
Cancel
Save