From 39070081d1a2a68e9b3e381c93b2cd678358233d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 4 Oct 2004 22:56:36 +0000 Subject: [PATCH] fixed empty log message on debug trace --- amxmodx/modules.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 5658c097..28f457b9 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -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); - AMXXLOG_Log("%s", vbuf); + if (*vbuf) + { + AMXXLOG_Log("%s", vbuf); + } } else { AMX_TRACE *t = dbg->tail; AMX_DEBUGCALL tracer = (AMX_DEBUGCALL)(amx->userdata[1]);