From bf500c39c9b6c7359204c5454aefa0dc7f51dae5 Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Sun, 30 May 2021 11:51:21 +0200 Subject: Codechange: make the name of SettingDesc a std::string --- src/script/api/script_gamesettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/api/script_gamesettings.cpp b/src/script/api/script_gamesettings.cpp index 458545226..35277e303 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); + return ScriptObject::DoCommand(0, 0, value, CMD_CHANGE_SETTING, sd->name.c_str()); } /* static */ bool ScriptGameSettings::IsDisabledVehicleType(ScriptVehicle::VehicleType vehicle_type) -- cgit v1.2.3-70-g09d2