mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
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))
|
||||
{
|
||||
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