X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a3d92499a8c10b231db452e86a0a71900910fa4f..9421e4b0be3a6a59e93ad092e3904b3ff8092e84:/projects/stargazer/plugins/other/rscript/rscript.cpp diff --git a/projects/stargazer/plugins/other/rscript/rscript.cpp b/projects/stargazer/plugins/other/rscript/rscript.cpp index 4a9e8d32..17b86c67 100644 --- a/projects/stargazer/plugins/other/rscript/rscript.cpp +++ b/projects/stargazer/plugins/other/rscript/rscript.cpp @@ -430,10 +430,10 @@ for(it = rsSettings.GetUserParams().begin(); ++it) { std::string parameter; - if (it->c_str() == "tariffName") + if (*it == "tariffName") parameter = rsu.user->GetParamValue("tariff"); else - parameter = rsu.user->GetParamValue(it->c_str()); + parameter = rsu.user->GetParamValue(*it); if (params.length() + parameter.length() > RS_PARAMS_LEN - 1) break; params += parameter + " ";