mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-21 05:15:44 +00:00
Small fix
This commit is contained in:
parent
c8063eb0b0
commit
376e7f11ec
@ -283,6 +283,8 @@ namespace scripting
|
|||||||
|
|
||||||
void add_array_key_value(unsigned int parent_id, const std::string& _key, const scripting::script_value& value)
|
void add_array_key_value(unsigned int parent_id, const std::string& _key, const scripting::script_value& value)
|
||||||
{
|
{
|
||||||
|
stack_isolation _;
|
||||||
|
|
||||||
const auto key = game::SL_GetString(_key.data(), 0);
|
const auto key = game::SL_GetString(_key.data(), 0);
|
||||||
|
|
||||||
scripting::push_value(scripting::entity(parent_id));
|
scripting::push_value(scripting::entity(parent_id));
|
||||||
@ -292,6 +294,8 @@ namespace scripting
|
|||||||
|
|
||||||
void add_array_value(unsigned int parent_id, const scripting::script_value& value)
|
void add_array_value(unsigned int parent_id, const scripting::script_value& value)
|
||||||
{
|
{
|
||||||
|
stack_isolation _;
|
||||||
|
|
||||||
scripting::push_value(scripting::entity(parent_id));
|
scripting::push_value(scripting::entity(parent_id));
|
||||||
scripting::push_value(value);
|
scripting::push_value(value);
|
||||||
game::Scr_AddArray();
|
game::Scr_AddArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user