diff --git a/cocos/scripting/lua-bindings/script/framework/init.lua b/cocos/scripting/lua-bindings/script/framework/init.lua index 3be8b3ed47..fc721f668e 100644 --- a/cocos/scripting/lua-bindings/script/framework/init.lua +++ b/cocos/scripting/lua-bindings/script/framework/init.lua @@ -72,6 +72,6 @@ function cc.disable_global() }) end -if CONFIG_DISABLE_GLOBAL then +if CC_DISABLE_GLOBAL then cc.disable_global() end