fixed bug: empty OptionalScript were saved as empty string, causing parse error when reading.

custom pack types can now be removed again.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1329 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-10 01:47:50 +00:00
parent e3cdb2bea7
commit 1b90f0666c
2 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ template <> void Reader::handle(OptionalScript& os) {
}
template <> void Writer::handle(const OptionalScript& os) {
handle(os.unparsed);
if (os.script) {
handle(os.unparsed);
}
}
template <> void GetDefaultMember::handle(const OptionalScript& os) {