I am attempting to write a library that loads a map. I load a file, and set its contents to a dynamic array. When I print the X and Y position of the for loops, the array cannot seem to get past (0,2). I am using the TDM compiler. The program becomes unresponsive, and must be closed out of. I have tried a vector of character vectors as well, again, same problem.
Code: