summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 1233e31..163636f 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -5791,7 +5791,7 @@ void G_PrivateMessage( gentity_t *ent )
matches,
color,
msg,
- ent ? ent-g_entities : -1 ) );
+ ent ? (int)( ent-g_entities ) : -1 ) );
trap_SendServerCommand( pids[ i ], va(
"cp \"^%cprivate message from ^7%s^7\"", color,