Fix tbtr refit button crashing if new template window is empty.
This commit is contained in:
@@ -244,7 +244,9 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TCW_REFIT: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user