Im trying to do some practise with classes doing a rpg game. Its almost done, the problem is that when i tryed to add a multiple enemy system, it messed up in 1 thing and i cant solve it! i uploaded all the proyect so u can see the code. I think the problem is in the function Map::checkRandomEncouter. The main file is game.cpp, the others are headers with the classes and some .cpp files with method definitions. The problem comes when it finds enemies, and has to display their hitpoints.
I know this may be tedious, but please help me! im stuck!
Thank you really much,
here's the proyect: