From 3f482ef0c6e4428b8f10c01c7f311b37ccce8e43 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Mon, 27 Oct 2014 21:41:25 -0400 Subject: [PATCH] fixed newRectangle bug where width and height were not set --- lib/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init.lua b/lib/init.lua index d8a4f32..e8aa2f9 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -343,7 +343,7 @@ end -- new rectangle function light_world:newRectangle(x, y, w, h) self.isShadows = true - return self:newBody("rectangle", x, y, width, height) + return self:newBody("rectangle", x, y, w, h) end -- new circle