Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
fixed var isolation on import module
Browse files Browse the repository at this point in the history
  • Loading branch information
ScorpioT1000 authored Feb 10, 2020
1 parent 5d011ab commit 9d683fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlpm-module-manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 .. "'")
Expand Down

0 comments on commit 9d683fc

Please sign in to comment.