Fix #9: Station rating popup crash
This commit is contained in:
@@ -527,7 +527,7 @@ struct BuildRailToolbarWindow : Window {
|
||||
{
|
||||
if (!gui_scope) return;
|
||||
|
||||
if (!CanBuildVehicleInfrastructure(VEH_TRAIN)) delete this;
|
||||
if (!CanBuildVehicleInfrastructure(VEH_TRAIN)) this->Close();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user