summaryrefslogtreecommitdiff
path: root/app/controllers/game_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/game_controller.rb')
-rw-r--r--app/controllers/game_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb
index 588c502..8b92222 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -111,7 +111,7 @@ class GameController < ApplicationController
end
end
- if current_char.queued_actions
+ if current_char.activity && current_char.queued_actions
if current_char.queued_actions > 0
current_char.queued_actions -= 1
current_char.activity_started_at = Time.now