Ive encountered a strange bug in my PlayGame() function here
https://gist.github.com/anonymous/b69f3fa2c6f9a01c9e039572bce00183
but my game runs normally when i do this:
https://gist.github.com/anonymous/af27c958b28322c38f516f48c0dfc1d3
int32 MAX_TURNS = 5;
for (int32 count = 1; count <= MAX_TURNS; count++){....}
But when i assign MAX_TURNS MyMaxTries from my .h file the for loop is entirely skipped
int32 MAX_TURNS = BCGAME.GetMaxTries();
this here gets skipped
for (int32 count = 1; count <= MAX_TURNS; count++){....}
and if i try this instead the loop will not run.
for (int32 count = 1; count <= BCGAME.GetMaxTries(); count++){....}
ive even tried not putting const in to see if that was part of the issue
sorry if this is hard to read, i tried to make it as neat as possible.
if someone can explain why this happens id appreciate it.
my FBullCowGame.cpp here
https://gist.github.com/anonymous/91a25748eb413b00976142112baf0ff3