fixed reading of IndexMaps: loop, initialization of 'index'

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@41 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-20 13:38:03 +00:00
parent c15bc94ee7
commit b5cb26474a
3 changed files with 71 additions and 8 deletions
+7 -4
View File
@@ -116,10 +116,13 @@ void Reader::readLine() {
}
void Reader::unknownKey() {
warning(_("Unexpected key: '") + key + _("'"));
do {
moveNext();
} while (indent > expected_indent);
if (indent == expected_indent) {
warning(_("Unexpected key: '") + key + _("'"));
do {
moveNext();
} while (indent > expected_indent);
}
// else: could be a nameless value, which doesn't call exitBlock to move past its own key
}
// ----------------------------------------------------------------------------- : Handling basic types