Also, when you fill the array, you might want to start at zero instead of 1
for (int i = 1; i <
[.net] Whats wrong with my code?
ok, that went wrong...
In your loop filling gameMapArray, count upto and include mapSize.
so not lower than, but lower or equal.
Right now you will not fill gameMapArray[0], so that could generate a null reference to a string.
In your loop filling gameMapArray, count upto and include mapSize.
so not lower than, but lower or equal.
Right now you will not fill gameMapArray[0], so that could generate a null reference to a string.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement