From e8c4dbc50f6305e9e6a3cb3653e0871e3c14d944 Mon Sep 17 00:00:00 2001 From: Alex Dovzhanyn Date: Tue, 6 Jun 2017 10:12:15 -0400 Subject: fix image z-index on initialization --- lib/ruby2d/image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby2d/image.rb b/lib/ruby2d/image.rb index cfab0b6..89e9b47 100644 --- a/lib/ruby2d/image.rb +++ b/lib/ruby2d/image.rb @@ -18,7 +18,7 @@ module Ruby2D @x = opts[:x] || 0 @y = opts[:y] || 0 - @z = opts[:x] || 0 + @z = opts[:z] || 0 @type_id = 4 -- cgit v1.2.3