This commit is contained in:
Sakimori 2021-01-04 15:37:53 -05:00
parent 5870325254
commit b4202a1a46

View File

@ -139,7 +139,7 @@ class team(object):
def slide_player(self, name, new_spot):
this_player, index, roster = self.find_player(name)
if this_player is not None and new_spot < len(roster):
if this_player is not None and new_spot <= len(roster):
roster.pop(index)
roster.insert(new_spot-1, this_player)
return True