Quick noob Q:
This is how i get a draught for P1 and store it under d1 :
Code:
Draught * d1 = player1->getDraught(i);
Now once its gone through my checks i want to store it in my vector - the number of the draught that is, but i get errors saying :
1: Cannot convert 'Draught *' to 'int' in function
2: Error E2342 Game.cpp 231: Type mismatch in parameter 'x' (wanted 'const int &',
got 'Draught *') in function Game::move(Square *,Draught *)
Code:
forcedMoves.push_back(d1);
i kno i ve made a noob mistake... any help??