Skip to content

Commit

Permalink
[LUA] Use xr_new for script debug entities in stack (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck authored Jan 13, 2025
1 parent 4639115 commit 691add8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrScriptEngine/script_stack_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<lua_Debug>();
}

CScriptStackTracker::~CScriptStackTracker()
Expand Down

0 comments on commit 691add8

Please sign in to comment.