Dungeon Crawl output different w/ debugger vs build&run

I'm trying to make a basic grid based dungeon crawler from the beginner exercises page. When I build&run and the program prints out the board[7][10] char array only one space on the board has a trap (denoted by 'T' character). But if I go step by step with the debugger it works perfectly and places 3 trap 'T' characters on the board like I want it to. I have no idea how to fix this problem or what is even causing it. I'm getting no errors from the compiler, it's just strange output.

Instead of copying the code and reformatting it again I'm providing a link to my post on stackoverflow: http://stackoverflow.com/questions/10474777/output-different-while-using-debugger-versus-buildrun-c

Any help would be much appreciated.

Thanks,
Luke
Topic archived. No new replies allowed.