corrected hacked unit behaviour

This commit is contained in:
devZoGok
2024-02-17 12:55:52 +02:00
parent 5c3c63a622
commit b9071536d6
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -211,5 +211,7 @@ namespace battleship{
oldPlayerUnits.erase(oldPlayerUnits.begin() + oldId);
newPlayer->addUnit(unit);
unit->setPlayer(newPlayer);
unit->halt();
}
}