From 4200e4ae0a4a64056f2811815ec1504b3ab84861 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 10 Jan 2009 20:21:14 +0000 Subject: [PATCH] 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 --- src/util/io/reader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/io/reader.hpp b/src/util/io/reader.hpp index 176b3d81..d36c2996 100644 --- a/src/util/io/reader.hpp +++ b/src/util/io/reader.hpp @@ -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