From 9d683fc64dc017558a462873cb0f5204f94efefa Mon Sep 17 00:00:00 2001 From: ScorpioT1000 Date: Mon, 10 Feb 2020 23:06:23 +0300 Subject: [PATCH] fixed var isolation on import module --- wlpm-module-manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlpm-module-manager.lua b/wlpm-module-manager.lua index db55623..ad8f523 100644 --- a/wlpm-module-manager.lua +++ b/wlpm-module-manager.lua @@ -76,7 +76,7 @@ function wlpmLoadModule(name, depth) end function wlpmImportModule(name, whatToImport) - theModule = wlpmLoadModule(name) + local theModule = wlpmLoadModule(name) if (type(whatToImport) == "string") then if(theModule.exports[whatToImport] == nil) then print("WLPM Error: name '" .. whatToImport .. "' was never exported by the module '" .. name .. "'")