mirror of
https://github.com/UberGames/RPG-X2.git
synced 2025-01-19 07:01:15 +00:00
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:
parent
f69ff3a240
commit
0c24562b07
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue