summaryrefslogtreecommitdiffhomepage
path: root/lib/camera/camera.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/camera/camera.rb')
-rw-r--r--lib/camera/camera.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/camera/camera.rb b/lib/camera/camera.rb
index 7079d56..64e2095 100644
--- a/lib/camera/camera.rb
+++ b/lib/camera/camera.rb
@@ -65,10 +65,12 @@ module Camera
# Redraw all objects that
# are tracked by the Camera
- def self.redraw(auto_purge: true)
+ def self.redraw(auto_purge: false)
if auto_purge
objects.each do |item|
if item.nil?
+ puts "Warning: Nil Object detected in Camera"
+ puts " Nil Object removed"
objects.delete(obj)
else
item.redraw