AGS: Grouped ccError variables in a struct

From upstream 48ef387226e4d420dc62d0a0b204cf4cd89a1139
This commit is contained in:
Paul Gilbert 2022-05-04 21:26:15 -07:00
parent a2a5f2575d
commit 16d0d89787
16 changed files with 82 additions and 80 deletions

View file

@ -322,7 +322,7 @@ String get_cur_script(int numberOfLinesOfCallStack) {
if (sci)
callstack = sci->GetCallStack(numberOfLinesOfCallStack);
if (callstack.IsEmpty())
callstack = _G(ccErrorCallStack);
callstack = cc_get_error().CallStack;
return callstack;
}