How can this happen

Started by
2 comments, last by Tree Penguin 18 years, 10 months ago
Take a look at this screenshot. As can be seen in the watch window it comparing 507 + 4 with 512 but for some reason it thinks 513<512 and manages to get into the if statement and crash. How can this happen ?
Advertisement
Well, 507 + 4 = 511 < 512... :)
Hmm ops now i feel extremely stupid. Then the only question is how it can read outside the 512*512 array when its less than 512.
Can you post som more code? It's probably some irritating x/y mixup.

This topic is closed to new replies.

Advertisement