aboutsummaryrefslogtreecommitdiffstats
path: root/code/game/g_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/game/g_session.c')
-rw-r--r--code/game/g_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/game/g_session.c b/code/game/g_session.c
index a39b2f2..89bceec 100644
--- a/code/game/g_session.c
+++ b/code/game/g_session.c
@@ -54,7 +54,7 @@ void G_WriteClientSessionData( gclient_t *client ) {
client->sess.teamLeader
);
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)(client - level.clients) );
trap_Cvar_Set( var, s );
}
@@ -75,7 +75,7 @@ void G_ReadSessionData( gclient_t *client ) {
int spectatorState;
int sessionTeam;
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)(client - level.clients) );
trap_Cvar_VariableStringBuffer( var, s, sizeof(s) );
sscanf( s, "%i %i %i %i %i %i %i",