made isComplex() function cope with the looping of the IMPLEMENT_REFLECTION function

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1337 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-10 20:21:14 +00:00
parent 37ea36005d
commit 4200e4ae0a
+1 -1
View File
@@ -51,7 +51,7 @@ class Reader {
/// Tell the reflection code we are not related to scripting
inline bool scripting() const { return false; }
/// Is the thing currently being read 'complex', i.e. does it have children
inline bool isComplex() const { return value.empty(); }
inline bool isComplex() const { return indent != expected_indent - 1 || value.empty(); }
/// Add a as an alias for b, all keys a will be replaced with b, only if file_app_version < end_version
void addAlias(Version end_version, const Char* a, const Char* b);
/// Ignore old keys