engine: client: fix memory leak on player disconnect

This commit is contained in:
Alibek Omarov 2022-08-13 00:47:00 +03:00
parent 5b97c2135a
commit 911385d019

View File

@ -1348,7 +1348,12 @@ void CL_UpdateUserinfo( sizebuf_t *msg )
if( slot == cl.playernum ) memcpy( &gameui.playerinfo, player, sizeof( player_info_t ));
}
else memset( player, 0, sizeof( *player ));
else
{
COM_ClearCustomizationList( &player->customdata, true );
memset( player, 0, sizeof( *player ));
}
}
/*