PDA

View Full Version : [SOLVED] getQuantity() returns 0 when stack has 2 tokens in it



Lobachevsky
02-05-2017, 01:17 PM
Pretty much title. 3+ tokens and it returns 3+. Single token returns -1. 2 tokens and it returns 0. Not particularly intuitive, if intended.

On a side note, is there a better way to split the stack other than repeatedly calling takeObject()?

Version 8.6

Jabrwock
03-12-2017, 01:44 PM
This appears to be fixed in v8.8

size 1 returns -1 (ie not a stack)
size 2 returns 2
size 3 returns 3