This commit is contained in:
@@ -27,7 +27,7 @@ public class StateMachine {
|
||||
}
|
||||
|
||||
public void popState() {
|
||||
menus.getLast().onKill();
|
||||
menus.get(menus.size() - 1).onKill();
|
||||
menus.pop();
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class StateMachine {
|
||||
ImGui.setNextWindowSize(displaySize);
|
||||
ImGui.begin("##Main Window", null, ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove
|
||||
| ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoBackground);
|
||||
menus.getLast().render();
|
||||
menus.get(menus.size() - 1).render();
|
||||
ImGui.end();
|
||||
checkEscape();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user