From 376e7f11ec931d5fc0c222277d51611aabe7777d Mon Sep 17 00:00:00 2001 From: Federico Cecchetto 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();