Fix #9: Station rating popup crash

This commit is contained in:
dP
2021-10-03 23:00:15 +03:00
parent 0f31dce938
commit f1f6bea47d
3 changed files with 13 additions and 6 deletions

View File

@@ -527,7 +527,7 @@ struct BuildRailToolbarWindow : Window {
{
if (!gui_scope) return;
if (!CanBuildVehicleInfrastructure(VEH_TRAIN)) delete this;
if (!CanBuildVehicleInfrastructure(VEH_TRAIN)) this->Close();
}
/**