[.net] Whats wrong with my code?

Started by
10 comments, last by GameDev.net 18 years ago

Also, when you fill the array, you might want to start at zero instead of 1

for (int i = 1; i <
Advertisement
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.

This topic is closed to new replies.

Advertisement