From 5b91a6284d04dd5ddc36c21d9e4b74648fb9432b Mon Sep 17 00:00:00 2001 From: alice <58637860+alicealys@users.noreply.github.com> Date: Fri, 18 Jun 2021 23:01:15 +0200 Subject: [PATCH] Small fix --- src/game/scripting/execution.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/scripting/execution.cpp b/src/game/scripting/execution.cpp index 82875fb..bad77a6 100644 --- a/src/game/scripting/execution.cpp +++ b/src/game/scripting/execution.cpp @@ -283,6 +283,8 @@ namespace scripting 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); 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) { + stack_isolation _; + scripting::push_value(scripting::entity(parent_id)); scripting::push_value(value); game::Scr_AddArray();