From 980a8fba7ba3a929167c13a19368322cf8aa30c8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 23 Sep 2007 16:01:12 +0000 Subject: [PATCH] fixed amb959 --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401464 --- core/smn_core.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/core/smn_core.cpp b/core/smn_core.cpp index ce51b9fc..2a7dbf29 100644 --- a/core/smn_core.cpp +++ b/core/smn_core.cpp @@ -92,22 +92,20 @@ public: void LogAction(Handle_t hndl, int type, int client, int target, const char *message) { - if (!g_OnLogAction->GetFunctionCount()) + if (g_OnLogAction->GetFunctionCount()) { - return; - } + cell_t result = 0; + g_OnLogAction->PushCell(hndl); + g_OnLogAction->PushCell(type); + g_OnLogAction->PushCell(client); + g_OnLogAction->PushCell(target); + g_OnLogAction->PushString(message); + g_OnLogAction->Execute(&result); - cell_t result = 0; - g_OnLogAction->PushCell(hndl); - g_OnLogAction->PushCell(type); - g_OnLogAction->PushCell(client); - g_OnLogAction->PushCell(target); - g_OnLogAction->PushString(message); - g_OnLogAction->Execute(&result); - - if (result >= (ResultType)Pl_Handled) - { - return; + if (result >= (ResultType)Pl_Handled) + { + return; + } } const char *logtag = "SM";