diff options
author | Rubidium <rubidium@openttd.org> | 2021-07-08 19:20:41 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-07-09 22:53:30 +0200 |
commit | 01139d33686945db4ccb77b62acadf2caab3b93e (patch) | |
tree | 62ed03494a78910043ef1e4275a3dd3816e31996 /src/script | |
parent | 94881f5a34340c0398599e09d27c0c9a205294b4 (diff) | |
download | openttd-01139d33686945db4ccb77b62acadf2caab3b93e.tar.xz |
Codechange: access the name of a setting via an accessor function
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_gamesettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_gamesettings.cpp b/src/script/api/script_gamesettings.cpp index 35277e303..78b26e9bb 100644 --- a/src/script/api/script_gamesettings.cpp +++ b/src/script/api/script_gamesettings.cpp @@ -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) |