diff --git a/ritual_ui.cpp b/ritual_ui.cpp index 10f21e5..699a07a 100644 --- a/ritual_ui.cpp +++ b/ritual_ui.cpp @@ -175,7 +175,6 @@ namespace gui { } } - void UI::load_blanket() { // update the list of available items int i = 0; @@ -193,7 +192,7 @@ namespace gui { } for(; i < INV_SLOTS; i++) { - auto slot_id = $gui.entity("inv_slot", i++); + auto slot_id = $gui.entity("inv_slot", i); $gui.remove(slot_id); $gui.remove(slot_id); }