lib/sc2ai/player/debug.rb in sc2ai-0.0.4 vs lib/sc2ai/player/debug.rb in sc2ai-0.0.5
- old
+ new
@@ -12,9 +12,10 @@
# Queues debug command for performing later
# @param debug_command [Api::DebugCommand]
# @return [void]
def queue_debug_command(debug_command)
+ @debug_command_queue ||= []
@debug_command_queue << debug_command
end
# Draw Commands ---