I have this code:
std::vector <int> loc;
loc.push_back(cpx);
loc.push_back(cpy);
loc.push_back(play.GetSize().x);
loc.push_back(70);
std::cout<<loc[3];
in a game I am making but even when I print the value of loc[2] and loc[3] they are completely different than they should be, when I run this code I get loc[3] equaling 70070 instead of 70. Does anybody know how to fix this?