diff --git a/debian/changelog b/debian/changelog
index a040575..94badef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ instead (1.2.0) unstable; urgency=low
* disable/enable/disable_all/enable_all added;
* exist() added (seen over disabled objects);
* improved debugger;
+ * save vars in _G;
* many small bugfixes...
-- Peter Kosyh
Tue, 01 Jun 2010 17:40:00 +0300
diff --git a/stead/stead.lua b/stead/stead.lua
index 6693d48..cded834 100644
--- a/stead/stead.lua
+++ b/stead/stead.lua
@@ -1528,6 +1528,7 @@ function game_save(self, name, file)
end
for_each_object(save_object, h);
save_object('game', self, h);
+ save_object('_G', _G, h);
clearvar(_G);
h:flush();
h:close();
@@ -2369,6 +2370,7 @@ function restore_snapshot(nr)
local ss = game._snapshots
if not ss[nr] then return nil, true end -- nothing todo
stead_init();
+ game.lifes:zap();
dofile('main.lua');
if type(init) == 'function' then -- no hooks here!!!
init();