Skip to content

Commit

Permalink
min->max .. oops
Browse files Browse the repository at this point in the history
  • Loading branch information
oskros committed Nov 4, 2020
1 parent a3cc580 commit 3ffc0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory_reader/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def player_unit_stats(self):
except ZeroDivisionError:
out['Exp %'] = 1
out['MF'] = next((v['value'] for v in vals if v['lostatid'] == 80 and v['histatid'] == 0), -1)
out['Players X'] = min(self.pm.read_uint(self.players_x_ptr), 1)
out['Players X'] = max(self.pm.read_uint(self.players_x_ptr), 1)
return out

def get_stats(self, unit, translate_stat=False):
Expand Down

0 comments on commit 3ffc0ac

Please sign in to comment.