From 0c24562b072b78f321e1d284cb16124bfc9b7a64 Mon Sep 17 00:00:00 2001 From: Walter Julius Hennecke Date: Tue, 6 Dec 2011 00:13:56 +0100 Subject: [PATCH] Fixed a bug in g_main.c where an entity was passed to an function insetead of its entity number. --- game/g_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/g_main.c b/game/g_main.c index 23f9590..b01feef 100644 --- a/game/g_main.c +++ b/game/g_main.c @@ -711,7 +711,7 @@ void QDECL G_PrintfClient(gentity_t *ent, const char *fmt, ...) { va_end (argptr); #ifdef G_LUA - LuaHook_G_ClientPrint(text, ent); + LuaHook_G_ClientPrint(text, ent-g_entities); #endif trap_SendServerCommand(ent-g_entities, va("print \"%s\n\"", text));