* refactoring
This commit is contained in:
parent
9e4bda9242
commit
6da68e1667
3 changed files with 2 additions and 28 deletions
|
|
@ -164,6 +164,7 @@ namespace game {
|
|||
Player *player = playerForId(playerId);
|
||||
if (player != nullptr) {
|
||||
for (Missile *missile : player->missiles) {
|
||||
player->missiles.remove(missile);
|
||||
missile->player = nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue