From c00c7361e98e61d88319233461314385b9676070 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 9 Jan 2022 14:48:51 +0100 Subject: [PATCH] lol --- src/game/gameManagers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/gameManagers.cpp b/src/game/gameManagers.cpp index 49fc605..ff4a7c6 100644 --- a/src/game/gameManagers.cpp +++ b/src/game/gameManagers.cpp @@ -185,7 +185,7 @@ bool Game::checkTorpedosAndInvaders() { pos.getX(), pos.getX() + confData.invadersSize)){ - InvaderType invType = grid[i][grid[i].size()-1]; + InvaderType invType = grid[i][alienIndex]; players[tor_ite->owner].score += confData.invadersDef.at(invType).points; torpedos.erase(tor_ite);