variables fix

This commit is contained in:
p.kosyh 2010-09-01 10:34:14 +00:00
parent 9c79407d69
commit 4641b26ea3

View file

@ -1701,7 +1701,13 @@ function gamefile(file, forget)
set_music();
set_sound();
timer:stop();
variables = nil
if type(variables) == 'table' then
local k,v
for k,v in ipairs(variables) do
_G[v] = nil
end
variables = nil
end
init = function() -- null init function
end
for_each_object(function(k, o) -- destroy all objects