Tamamo
01-05-2015, 12:29 PM
I tried doing this:
int var = 1;
if(SizeOfArray(var)==-1)
Link->Item[I_SWORD1];
Worked just find, except that it traced an error message in allegro.log saying that it tried to pass the value of var as an index into the array; returns -1 regardless of what number you put in as it should since it's not an array.
int var = 1;
if(SizeOfArray(var)==-1)
Link->Item[I_SWORD1];
Worked just find, except that it traced an error message in allegro.log saying that it tried to pass the value of var as an index into the array; returns -1 regardless of what number you put in as it should since it's not an array.