From 5a3913d6ff7147f37c028a666b4e115707454093 Mon Sep 17 00:00:00 2001 From: Cromha <87318892+OcelotWalrus@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:46:25 +0100 Subject: [PATCH] bugfix[major] - fixed infinite loop when spawning enemies --- source/enemy_handling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/enemy_handling.py b/source/enemy_handling.py index 4cce884..bb22890 100644 --- a/source/enemy_handling.py +++ b/source/enemy_handling.py @@ -53,7 +53,7 @@ def generate_enemies_from_list(lists, list_enemies, player): finished = True count += 1 if count > len(list(list_enemies)) - 1: # forces to choose - count = 0 + chosen_entry = entry if player["difficulty mode"] == 0: difficulty = "easy"