Fix some bugs in loading and saving new-format scenarios

This commit is contained in:
2015-06-01 17:23:15 -04:00
parent 5606f3e91e
commit 72add651a5
3 changed files with 4 additions and 1 deletions

View File

@@ -371,7 +371,7 @@ static void writeTerrainToXml(ticpp::Printer&& data) {
data.CloseElement("special");
data.OpenElement("editor");
if(ter.shortcut_key > 0)
if(ter.shortcut_key > 0 && ter.shortcut_key < '\x7f')
data.PushElement("shortcut", ter.shortcut_key);
if(ter.obj_num > 0) {
data.OpenElement("object");