mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-13 07:18:05 +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 || !(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("[AMXX] %s", buf);
|
||||||
AMXXLOG_Log("%s", vbuf);
|
AMXXLOG_Log("%s", vbuf);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user