Fixed bug where 'result' was stored in global namespace (boot.lua)

This commit is contained in:
bart@bartbes.ath.cx
2010-06-17 18:22:12 +02:00
parent 0188572124
commit 5f780de061
2 changed files with 18 additions and 17 deletions
+3 -3
View File
@@ -838,9 +838,9 @@ end
-- The root of all calls.
-----------------------------------------------------------
result = xpcall(love.boot, error_printer)
local result = xpcall(love.boot, error_printer)
if not result then return end
result = xpcall(love.init, love.errhand)
local result = xpcall(love.init, love.errhand)
if not result then return end
result = xpcall(love.run, love.errhand)
local result = xpcall(love.run, love.errhand)
if not result then return end