diff options
Diffstat (limited to 'src/game/g_namelog.c')
-rw-r--r-- | src/game/g_namelog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_namelog.c b/src/game/g_namelog.c index 1e5b7f4f..66136844 100644 --- a/src/game/g_namelog.c +++ b/src/game/g_namelog.c @@ -51,9 +51,15 @@ void G_namelog_connect( gclient_t *client ) n = BG_Alloc( sizeof( namelog_t ) ); strcpy( n->guid, client->pers.guid ); if( p ) + { p->next = n; + n->id = p->id + 1; + } else + { level.namelogs = n; + n->id = MAX_CLIENTS; + } } client->pers.namelog = n; n->slot = client - level.clients; |