summaryrefslogtreecommitdiff
path: root/src/game/g_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_session.c')
-rw-r--r--src/game/g_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_session.c b/src/game/g_session.c
index e1705ea..c303134 100644
--- a/src/game/g_session.c
+++ b/src/game/g_session.c
@@ -59,7 +59,7 @@ void G_WriteClientSessionData( gclient_t *client )
BG_ClientListString( &client->sess.ignoreList )
);
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)( client - level.clients ) );
trap_Cvar_Set( var, s );
}
@@ -83,7 +83,7 @@ void G_ReadSessionData( gclient_t *client )
int sessionTeam;
int restartTeam;
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)( client - level.clients ) );
trap_Cvar_VariableStringBuffer( var, s, sizeof(s) );
// FIXME: should be using BG_ClientListParse() for ignoreList, but