diff --git a/Rules.make.standalone b/Rules.make.standalone
index 7ad36f1..b5ad8bb 100644
--- a/Rules.make.standalone
+++ b/Rules.make.standalone
@@ -1,4 +1,4 @@
-VERSION := 1.1.1
+VERSION := 1.1.2
DESTDIR=
BIN=
diff --git a/Rules.make.system b/Rules.make.system
index 70f652f..ca9c8c6 100644
--- a/Rules.make.system
+++ b/Rules.make.system
@@ -1,4 +1,4 @@
-VERSION := 1.1.1
+VERSION := 1.1.2
PREFIX=/usr/local
DESTDIR=
diff --git a/Rules.windows b/Rules.windows
index d0970b5..fe7dfd8 100644
--- a/Rules.windows
+++ b/Rules.windows
@@ -1,4 +1,4 @@
-VERSION := 1.1.1
+VERSION := 1.1.2
PREFIX=
DESTDIR=
diff --git a/debian/changelog b/debian/changelog
index cf5fcef..aadcc7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+instead (1.1.2) unstable; urgency=low
+
+ * bug in saves
+
+ -- Peter Kosyh
Wed, 10 Feb 2010 13:39:47 +0300
+
instead (1.1.1) unstable; urgency=low
* encode path in save (' in paths);
diff --git a/desktop/instead.desktop.in b/desktop/instead.desktop.in
index 1fadde5..f7f4328 100644
--- a/desktop/instead.desktop.in
+++ b/desktop/instead.desktop.in
@@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
-Version=1.1.1
+Version=1.1.2
Type=Application
Name=INSTEAD
Name[ru]=INSTEAD
diff --git a/doc/index.html b/doc/index.html
index d89de18..dc0d331 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -13,7 +13,7 @@ body { font-family: Verdana, Arial, Helvetica, sans-serif;
INSTEAD -- interpreter of simple text adventures for Unix and Windows
-INSTEAD 1.1.1
+INSTEAD 1.1.2
INSTEAD -- interpreter of simple text adventures for Unix and Windows.
INSTEAD was designed to interpret the games that are the mix of visual novels, text quests and classical 90'ss quests.
diff --git a/doc/instead.6 b/doc/instead.6
index 1e164d9..357e8e9 100644
--- a/doc/instead.6
+++ b/doc/instead.6
@@ -1,4 +1,4 @@
-.TH INSTEAD 6 "Version 1.1.1" Instead GAMES
+.TH INSTEAD 6 "Version 1.1.2" Instead GAMES
.SH NAME
diff --git a/readme.txt b/readme.txt
index a7a13b4..8db9fe3 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,4 +1,4 @@
-INSTEAD 1.1.1
+INSTEAD 1.1.2
=============
WARNING! For successfull building you must install these development packages (names may vary in your distribution):
diff --git a/setup.iss b/setup.iss
index 4428281..fa4f8ea 100644
--- a/setup.iss
+++ b/setup.iss
@@ -1,11 +1,11 @@
[Setup]
AppName=INSTEAD
-AppVerName=INSTEAD 1.1.1
+AppVerName=INSTEAD 1.1.2
DefaultDirName={pf}\Pinebrush games\INSTEAD
DefaultGroupName=Pinebrush games
UninstallDisplayIcon={app}\sdl-instead.exe
OutputDir=.
-OutputBaseFilename=instead-1.1.1
+OutputBaseFilename=instead-1.1.2
AllowNoIcons=true
[Languages]
diff --git a/stead/stead.lua b/stead/stead.lua
index bfeb3c0..6904544 100644
--- a/stead/stead.lua
+++ b/stead/stead.lua
@@ -1,5 +1,5 @@
stead = {
- version = "1.1.1",
+ version = "1.1.2",
table = table,
string = string,
math = math,
@@ -1127,7 +1127,7 @@ function player_go(self, where)
end
function player_save(self, name, h)
- h:write(tostring(name)..'.where = "'..deref(self.where)..'";\n');
+ h:write(tostring(name)..".where = '"..deref(self.where).."';\n");
savemembers(h, self, name, false);
end
@@ -1790,7 +1790,7 @@ end
function allocator_save(s, name, h, need)
if need then
- local m = ' = allocator:get("'..name..'","'..s.constructor..'");';
+ local m = ' = allocator:get("'..name:gsub('"','\\"')..'","'..tostring(s.constructor):gsub('"','\\"')..'");';
h:write(name..m..'\n');
end
savemembers(h, s, name, false);