Line 5 prints out the correct value. Line 9 prints the same data, though.
The program doesn't crash but I can't seem to move the current position. I assume I am doing something blatantly wrong here that will hopefully be an easy fix.
If anybody can help me I'd really appreciate it. If you need more of my code let me know.
I've tried that. under map[i + 1] a message comes up saying that there is no suitable conversion function to change from world to *world (that's the type of the array).
If I write *map[i + 1], it says no operator matches the operands... Should I try it on the left half, the program crashes.
EDIT: Fixed. All it needed was map[i].east = &map[i + 1]; for each line. The pointers are working as they should now.
The thing is the '->' operator says "Take the data this pointer on the left refers to and give me this member on the right from it". It doesn't change the value of playerLoc, the '+1' is an offset, which is what I think ne555 is trying to tell you. Where as his code actually reassigns a value to "map[i].east".