mirror of
https://github.com/vrld/HC.git
synced 2024-11-18 12:54:23 +00:00
Fix #18: Invalid check for class-commons.
This commit is contained in:
parent
de82e88ddf
commit
1d5196cd70
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user