mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
correctly selecting the deselectable unit
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ namespace battleship{
|
||||
|
||||
void Player::removeUnit(int id){
|
||||
if(units[id]->isSelected())
|
||||
deselectUnit(id);
|
||||
units[id]->toggleSelection(false);
|
||||
|
||||
delete units[id];
|
||||
units.erase(units.begin() + id);
|
||||
|
||||
Reference in New Issue
Block a user