fix multiplayer crash

This commit is contained in:
2025-02-03 11:32:17 +01:00
parent 11a246adfd
commit 7dd3f198db

View File

@@ -71,6 +71,9 @@ public class SudokuRenderer {
private void renderPopup() {
if (ImGui.beginPopup("editPopup")) {
if (currentCell == null)
ImGui.closeCurrentPopup();
else {
Block block = currentCell.getBlock();
int symbolCount = block.getCells().size();
for (int i = 0; i < symbolCount; i++) {
@@ -92,6 +95,7 @@ public class SudokuRenderer {
}
}
}
}
ImGui.endPopup();
}
}