fix multiplayer crash
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user