Fixed a debug trace output
This commit is contained in:
parent
4ef8530bba
commit
00d8ffe503
|
@ -1189,7 +1189,12 @@ void LogError(AMX *amx, int err, const char *fmt, ...)
|
|||
|
||||
if (!dbg || !(dbg->tail))
|
||||
{
|
||||
GenericError(amx, err, amx->curline, buf, NULL);
|
||||
if (dbg && amx->curfile < dbg->numFiles && amx->curfile >= 0)
|
||||
{
|
||||
GenericError(amx, err, amx->curline, buf, dbg->files[amx->curfile]);
|
||||
} else {
|
||||
GenericError(amx, err, amx->curline, buf, NULL);
|
||||
}
|
||||
AMXXLOG_Log("[AMXX] %s", buf);
|
||||
AMXXLOG_Log("%s", vbuf);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user