fix gsc error stacktrace

This commit is contained in:
quaK 2024-07-10 19:07:12 +03:00
parent 02bc694695
commit 4ed6cc9310

View File

@ -297,7 +297,7 @@ namespace gsc
{
const auto function_stack = game::scr_function_stack;
const auto pos = frame == game::scr_VmPub->function_frame ? function_stack->pos : frame->fs.pos;
const auto function = find_function(frame->fs.pos);
const auto function = find_function(pos);
if (function.has_value())
{