From b4202a1a460e68353adfa6c148cf2bcb12a829e6 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Mon, 4 Jan 2021 15:37:53 -0500 Subject: [PATCH] fixes bug #118 --- games.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games.py b/games.py index f990724..8724f01 100644 --- a/games.py +++ b/games.py @@ -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