Fix #18: Invalid check for class-commons.

This commit is contained in:
Matthias Richter 2012-07-22 12:13:10 +02:00
parent de82e88ddf
commit 1d5196cd70

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
local math_min, math_sqrt, math_huge = math.min, math.sqrt, math.huge local math_min, math_sqrt, math_huge = math.min, math.sqrt, math.huge
local _PACKAGE = (...):match("^(.+)%.[^%.]+") local _PACKAGE = (...):match("^(.+)%.[^%.]+")
if not common and common.class then if not (common and common.class and common.instance) then
class_commons = true class_commons = true
require(_PACKAGE .. '.class') require(_PACKAGE .. '.class')
end end