Skip to content

Commit

Permalink
fix NameError in Region.findBest
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferz2012 committed Aug 31, 2018
1 parent 217f09b commit 8b1fc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lackey/RegionMatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ def findBest(self, pattern):
findFailedRetry = True
while findFailedRetry:
best_match = None
all_matches = self.findAll(*args)
all_matches = self.findAll(pattern)
for match in all_matches:
if best_match is None or best_match.getScore() < match.getScore():
best_match = match
Expand Down

0 comments on commit 8b1fc85

Please sign in to comment.