summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index ea4e5c9..45737f1 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1438,7 +1438,7 @@ const char *ClientConnect( int clientNum, qboolean firstTime )
char ip[ 16 ] = {""};
char reason[ MAX_STRING_CHARS ] = {""};
int i;
- schachtmeisterJudgement_t *smj = NULL;
+ schachtmeisterJudgement_t *smj;
ent = &g_entities[ clientNum ];
@@ -1513,6 +1513,8 @@ const char *ClientConnect( int clientNum, qboolean firstTime )
strcmp( g_password.string, value ) != 0 )
return "Invalid password";
+ smj = NULL;
+
if (!(G_admin_permission_guid(guid, ADMF_NOAUTOBAHN)
|| G_admin_permission_guid(guid, ADMF_IMMUNITY)))
{