mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2026-08-01 04:40:34 +00:00
Use signature utils
This commit is contained in:
@@ -263,11 +263,9 @@ namespace scripting
|
||||
}
|
||||
}
|
||||
|
||||
void array::set(const std::string& key, const script_value& _value) const
|
||||
void array::set(const std::string& key, const script_value& value_) const
|
||||
{
|
||||
const auto value = _value.get_raw();
|
||||
|
||||
const auto string_value = game::SL_GetString(key.data(), 0);
|
||||
const auto value = value_.get_raw();
|
||||
const auto variable_id = this->get_value_id(key);
|
||||
|
||||
if (!variable_id)
|
||||
@@ -284,9 +282,9 @@ namespace scripting
|
||||
variable->u.u = value.u;
|
||||
}
|
||||
|
||||
void array::set(const unsigned int index, const script_value& _value) const
|
||||
void array::set(const unsigned int index, const script_value& value_) const
|
||||
{
|
||||
const auto value = _value.get_raw();
|
||||
const auto value = value_.get_raw();
|
||||
const auto variable_id = this->get_value_id(index);
|
||||
|
||||
if (!variable_id)
|
||||
|
||||
Reference in New Issue
Block a user