summaryrefslogtreecommitdiff
path: root/scripts/Time/TurnManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Time/TurnManager.cs')
-rw-r--r--scripts/Time/TurnManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Time/TurnManager.cs b/scripts/Time/TurnManager.cs
index 0c2981c..af721ee 100644
--- a/scripts/Time/TurnManager.cs
+++ b/scripts/Time/TurnManager.cs
@@ -51,7 +51,7 @@ public partial class TurnManager : RefCounted
}
// Primeiro executamos a ação do jogador, se ele puder.
- if (Player.Energy > 0) {
+ if (playerActionQueue.Count > 0 && Player.Energy > 0) {
Action action = playerActionQueue[0];
playerActionQueue.RemoveAt(0);