v0.2.4: added some safety checks to the quickslot button
This commit is contained in:
@@ -57,10 +57,14 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||
public void destroy() {
|
||||
super.destroy();
|
||||
|
||||
instance = new QuickSlotButton[4];
|
||||
|
||||
lastTarget = null;
|
||||
reset();
|
||||
}
|
||||
|
||||
public static void reset() {
|
||||
instance = new QuickSlotButton[4];
|
||||
|
||||
lastTarget = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void createChildren() {
|
||||
|
||||
Reference in New Issue
Block a user