diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java index 06612bf..3bc64bf 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java @@ -133,7 +133,7 @@ public class TestWorld implements GameEventListener{ @Override public void receivedEvent(PopUpEvent event) { if(event.msg().equals("Buy")) { - int field = app.getGameLogic().getPlayerHandler().getPlayers().get(0).getFieldID(); + int field = app.getGameLogic().getPlayerHandler().getPlayerById(app.getId()).getFieldID(); Object fieldObject = app.getGameLogic().getBoardManager().getFieldAtIndex(field); if (fieldObject instanceof BuildingProperty) {