From 1d5196cd7044dc601f2b63b90d226a846cb82352 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Sun, 22 Jul 2012 12:13:10 +0200 Subject: [PATCH] Fix #18: Invalid check for class-commons. --- shapes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes.lua b/shapes.lua index 6e9ed2d..493e90a 100644 --- a/shapes.lua +++ b/shapes.lua @@ -27,7 +27,7 @@ THE SOFTWARE. local math_min, math_sqrt, math_huge = math.min, math.sqrt, math.huge local _PACKAGE = (...):match("^(.+)%.[^%.]+") -if not common and common.class then +if not (common and common.class and common.instance) then class_commons = true require(_PACKAGE .. '.class') end