fixed empty log message on debug trace

This commit is contained in:
David Anderson 2004-10-04 22:56:36 +00:00
parent 00d8ffe503
commit 39070081d1

View File

@ -1196,7 +1196,10 @@ void LogError(AMX *amx, int err, const char *fmt, ...)
GenericError(amx, err, amx->curline, buf, NULL);
}
AMXXLOG_Log("[AMXX] %s", buf);
if (*vbuf)
{
AMXXLOG_Log("%s", vbuf);
}
} else {
AMX_TRACE *t = dbg->tail;
AMX_DEBUGCALL tracer = (AMX_DEBUGCALL)(amx->userdata[1]);