Skip to content

Commit

Permalink
Fix crash in FindDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 2, 2024
1 parent edbf7b1 commit 12d8ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/mindustry/client/ui/FindDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object FindDialog : BaseDialog("@client.find") {
init {
for ((i, img) in images.withIndex()) {
img.clicked { // When image clicked, select it
if (guesses.size <= i) return@clicked
val gi = guesses[i]
guesses[i] = guesses[0]
guesses[0] = gi
Expand Down

0 comments on commit 12d8ba3

Please sign in to comment.