Fixed a debug trace output

This commit is contained in:
David Anderson 2004-10-04 20:36:21 +00:00
parent 4ef8530bba
commit 00d8ffe503

View File

@ -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 {