mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-24 04:38:05 +03:00
Really fixed callfunc this time (debugger invocation error)
This commit is contained in:
parent
a46ec5357e
commit
21caa9a0de
@ -3099,10 +3099,6 @@ static cell AMX_NATIVE_CALL callfunc_end(AMX *amx, cell *params)
|
|||||||
// call the func
|
// call the func
|
||||||
cell retVal;
|
cell retVal;
|
||||||
int err;
|
int err;
|
||||||
Debugger *pDebugger = (Debugger *)amx->userdata[UD_DEBUGGER];
|
|
||||||
|
|
||||||
if (pDebugger)
|
|
||||||
pDebugger->BeginExec();
|
|
||||||
|
|
||||||
// copy the globs so the called func can also use callfunc
|
// copy the globs so the called func can also use callfunc
|
||||||
cell gparams[CALLFUNC_MAXPARAMS];
|
cell gparams[CALLFUNC_MAXPARAMS];
|
||||||
@ -3121,6 +3117,11 @@ static cell AMX_NATIVE_CALL callfunc_end(AMX *amx, cell *params)
|
|||||||
|
|
||||||
AMX *pAmx = plugin->getAMX();
|
AMX *pAmx = plugin->getAMX();
|
||||||
|
|
||||||
|
Debugger *pDebugger = (Debugger *)pAmx->userdata[UD_DEBUGGER];
|
||||||
|
|
||||||
|
if (pDebugger)
|
||||||
|
pDebugger->BeginExec();
|
||||||
|
|
||||||
// actual call
|
// actual call
|
||||||
// Pawn - push parameters in reverse order
|
// Pawn - push parameters in reverse order
|
||||||
for (int i = curParam - 1; i >= 0; i--)
|
for (int i = curParam - 1; i >= 0; i--)
|
||||||
|
@ -469,7 +469,7 @@ int Debugger::FormatError(char *buffer, size_t maxLength)
|
|||||||
if (m_pAmx->alt < 0)
|
if (m_pAmx->alt < 0)
|
||||||
{
|
{
|
||||||
//take a guess that it's local
|
//take a guess that it's local
|
||||||
addr = m_pAmx->alt - pTrace->frm;
|
addr = m_pAmx->alt - pTrace->frm;
|
||||||
v_class = 1;
|
v_class = 1;
|
||||||
} else {
|
} else {
|
||||||
//take a guess that it's a global
|
//take a guess that it's a global
|
||||||
|
Loading…
x
Reference in New Issue
Block a user