I found $count() was not returning proper values for stacked items, so I investigated and found an extra 2 bytes in memory somewhere between
signed long AC; // 0x14
and
...
BYTE Stackable; // 0x36
changing
BYTE Unknown0274[2]; // 0x34
to:
BYTE Unknown0274[4]; // 0x34
will fix it and and thus make
BYTE Stackable; // 0x38
this gives proper stack counts although I did not have time to investigate and see if the extra 2 bytes were the result of one of the WORD's being expanded to a DWORD (which I suspect is probably the case).
kaz
