diff --git a/src/kode/Tournament.cpp b/src/kode/Tournament.cpp
index ed3eb7253a1cc25ace8cb77aab05479f7c77cf57..12567bef28cf6b60cbdaba088ff47b8d2c5c0925 100644
--- a/src/kode/Tournament.cpp
+++ b/src/kode/Tournament.cpp
@@ -29,8 +29,8 @@ void Tournament::enterResults()
     cout << endl << "Enter results for round " << currentRound;
     for (int i = 0; i < nrOfTables; ++i)
     {
-        playerList[searchByID(white[i],playerList)]->playedAgainst.push_back( playerList[searchByID(black[i],playerList)]);
-        playerList[searchByID(black[i],playerList)]->playedAgainst.push_back(playerList[searchByID(white[i],playerList)]);
+        playerList[searchByID(white[i],playerList)]->playedAgainst.push_back( playerList[searchByID(black[i],playerList)]->playerID);
+        playerList[searchByID(black[i],playerList)]->playedAgainst.push_back(playerList[searchByID(white[i],playerList)]->playerID);
         playerList[searchByID(white[i],playerList)]->white++;
         int answer;
         cout << endl << "Enter results for table " << i+1 << "with "
diff --git a/src/kode/player.h b/src/kode/player.h
index 6d12e9a7ffe33675a614a2975bfbe4625de58b33..70567b39a042789d8bca61b5ca41262843c71911 100644
--- a/src/kode/player.h
+++ b/src/kode/player.h
@@ -27,7 +27,7 @@ class Player
         float score;
 
         vector <int> results;  //stores the results of each match, 0 for loss, 1 for draw and 2 for win
-        vector <Player*> playedAgainst; //has every person they have played against
+        vector <int> playedAgainst; //has every person they have played against
 
         Player();
         Player(string name, string surName, string clubName, int rating, int playerID, float score);