Skip to content
Browse files

fix global enviroment pollution in luaui.lua

  • Loading branch information...
1 parent 157cc08 commit 01b1a173e50fec4837a757845cf7bcd3d150c24d -jk- committed Nov 1, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 cont/luaui.lua
View
5 cont/luaui.lua
@@ -12,11 +12,8 @@
--------------------------------------------------------------------------------
LUAUI_VERSION = "LuaUI v0.3"
-
LUAUI_DIRNAME = 'LuaUI/'
-
VFS.DEF_MODE = VFS.RAW_FIRST
-
local STARTUP_FILENAME = LUAUI_DIRNAME .. 'main.lua'
@@ -42,7 +39,7 @@ Spring.Echo('Using LUAUI_DIRNAME = ' .. LUAUI_DIRNAME)
--
do
- text = VFS.LoadFile(STARTUP_FILENAME, VFS.RAW_ONLY)
+ local text = VFS.LoadFile(STARTUP_FILENAME, VFS.RAW_ONLY)
if (text == nil) then
Script.Kill('Failed to load ' .. STARTUP_FILENAME)
end

0 comments on commit 01b1a17

Please sign in to comment.
Something went wrong with that request. Please try again.