From bda2b7152b8ea22c03cd21bf3a5bd2b45ef6d0de Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 12 Jul 2020 16:56:29 -0700 Subject: [PATCH] VendorGrid#drain clears children --- core/src/com/riiablo/screen/panel/VendorGrid.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/riiablo/screen/panel/VendorGrid.java b/core/src/com/riiablo/screen/panel/VendorGrid.java index 06cc581a..1b370e70 100644 --- a/core/src/com/riiablo/screen/panel/VendorGrid.java +++ b/core/src/com/riiablo/screen/panel/VendorGrid.java @@ -35,6 +35,7 @@ public class VendorGrid extends ItemGrid { } public int drain(Array items) { + clearChildren(); sort(items); Gdx.app.debug(TAG, "Draining " + items); GridPoint2 coords = new GridPoint2(0, 0);