Hi peeps,
I loop through my draughts in my game, and if that draught is in a forced move position then i store it in a vector. so draught 3 and 4 could be stored. Now when the player comes to make the move it checks if on of those draughts have been picked, if not its an invalid move. Now the problem is i don't think im comparing the draught that is selected to the one stored in the vector. I am using this line f code to do it:
sq1 is the square that is selected by the player, then i get the draught on the square and see if the number of it is the same as the one as move (move is an iterator for my vector). I get a warning:Code:if (sq1->getDraught() == move) {
Warning W8011 Game.cpp 320: Nonportable pointer comparison in function Game::mov
e(Square *,Draught *)
Any help in how to do this or if i have done anything wrong??