janesconference/KievII — Issue #75: setStatesNumber should check the maximum images allowed.
Author: janesconference
Created: 2011-12-08 11:26:26+00:00
State: open
Labels: GUIElements

Currently, it is possible to set the nButtons value to a value > imagesArray.length. This will cause an exception when drawing a missing image.
Plus, the method doesn't check the current buttonvalue (that could be higher than the new states number).