mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32: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 playerRemoved(player);
|
||||||
emit playerCountChanged();
|
emit playerCountChanged();
|
||||||
players.remove(playerId);
|
players.remove(playerId);
|
||||||
|
player->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
Player *PlayerManager::getPlayer(int playerId) const
|
Player *PlayerManager::getPlayer(int playerId) const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue