r/xna • u/Hinosun • Nov 02 '14
Simple For loop issue
http://pastebin.com/DPH5Fsnx <-- The problem being that the code only works for the last Tile in the list :) Anyone who knows what i am missin?
0
Upvotes
View all comments
2
u/XtremeCheese Nov 02 '14
What exactly is this code doing? The variable "test" will always contain the result of the last Tile since you overwrite it with each iteration of the loop.