Originally Posted by xpi0t0s
Try displaying the value, e.g.
cout << "You dont have enough gold for that (you have " << player.getGold() << " but need " << "mGoldRequired << ")" << endl;
Tried that, but all what happened was it went through and allowed me to buy an item even though it was more gold than I had, and then when I tried to buy another item, it then displayed:
You dont have enough gold for that you have -90 but need 100
It seems as if it is bypassing the if statement on its first iteration, strange as it works on the spell code just fine