No error message when dereferencing fails

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
NateDog
Posts: 52
Joined: 26 Jun 2006, 13:25

No error message when dereferencing fails

Post by NateDog »

i know there can be problems with nested deferencing of objects/arrays but this one was particularly nasty to debug ....

Code: Select all

u.freezer[dnaIndex].qty--;
gave no error but just wouldn't load the extension.

switched to the following and all is well:

Code: Select all

var q = u.freezer[dna1Index].qty;
q--;
the real problem is just the complete lack of error message when trying to load the extension so made identifying/correcting a bit tedious...
Post Reply