mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Player manager is responsible for deleting players.
Took 21 minutes
This commit is contained in:
parent
a69bfb8cb8
commit
c2612015aa
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ void PlayerManager::removePlayer(int playerId)
|
|||
emit playerRemoved(player);
|
||||
emit playerCountChanged();
|
||||
players.remove(playerId);
|
||||
player->deleteLater();
|
||||
}
|
||||
|
||||
Player *PlayerManager::getPlayer(int playerId) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue