Fixed a bug in g_main.c where an entity was passed to an function insetead of its entity number.

This commit is contained in:
Walter Julius Hennecke 2011-12-06 00:13:56 +01:00
parent f69ff3a240
commit 0c24562b07

View file

@ -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));