Codechange: access the name of a setting via an accessor function

This commit is contained in:
Rubidium
2021-07-08 19:20:41 +02:00
committed by rubidium42
parent 94881f5a34
commit 01139d3368
4 changed files with 34 additions and 23 deletions

View File

@@ -37,7 +37,7 @@
if ((sd->flags & SF_NO_NETWORK_SYNC) != 0) return false;
return ScriptObject::DoCommand(0, 0, value, CMD_CHANGE_SETTING, sd->name.c_str());
return ScriptObject::DoCommand(0, 0, value, CMD_CHANGE_SETTING, sd->GetName().c_str());
}
/* static */ bool ScriptGameSettings::IsDisabledVehicleType(ScriptVehicle::VehicleType vehicle_type)