Skip to content

Commit

Permalink
Fix: close unfinished query iteration in achievement check (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 authored Mar 14, 2024
1 parent 999becc commit 0897009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions game/res/achievements/achievements.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func (a *Achievements) checkTerrain(ids uint32, num int) bool {
if (bits & ids) == bits {
cnt++
if cnt >= num {
query.Close()
return true
}
}
Expand Down

0 comments on commit 0897009

Please sign in to comment.