diff --git a/src/xrScriptEngine/script_stack_tracker.cpp b/src/xrScriptEngine/script_stack_tracker.cpp index d8463120bdd..fee8a195b03 100644 --- a/src/xrScriptEngine/script_stack_tracker.cpp +++ b/src/xrScriptEngine/script_stack_tracker.cpp @@ -15,7 +15,7 @@ CScriptStackTracker::CScriptStackTracker(CScriptEngine* scriptEngine) this->scriptEngine = scriptEngine; m_current_stack_level = 0; for (int i = 0; i < max_stack_size; i++) - m_stack[i] = new lua_Debug(); + m_stack[i] = xr_new(); } CScriptStackTracker::~CScriptStackTracker()