summaryrefslogtreecommitdiff
path: root/library/VersionInfoFactory.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2010-08-28 06:31:44 +0200
committerPetr Mrázek2010-08-28 06:31:44 +0200
commit84b417cf1a7eba5143c86159119f3bd87a22d0e3 (patch)
tree3170a01e16cb52f38bc7e9fb216fa2854133c539 /library/VersionInfoFactory.cpp
parente762f1caeaead912c4eb6a61f9453cb0f8d00676 (diff)
downloaddfhack-84b417cf1a7eba5143c86159119f3bd87a22d0e3.tar.gz
dfhack-84b417cf1a7eba5143c86159119f3bd87a22d0e3.tar.bz2
dfhack-84b417cf1a7eba5143c86159119f3bd87a22d0e3.tar.xz
Memory-ng.xml should be consistent now. Offset dumper doesn't complain.
Diffstat (limited to 'library/VersionInfoFactory.cpp')
-rw-r--r--library/VersionInfoFactory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp
index 6a1bd517..11007f00 100644
--- a/library/VersionInfoFactory.cpp
+++ b/library/VersionInfoFactory.cpp
@@ -183,6 +183,12 @@ void VersionInfoFactory::ParseOffsets(TiXmlElement * parent, VersionInfo* target
groupPair & gp = breadcrumbs.back();
gp.first = currentElem->NextSiblingElement();
+ if(!og)
+ {
+ string fullname = currentGroup->getFullName() + cstr_name;
+ throw Error::MissingMemoryDefinition("group", fullname);
+ }
+
// add a new level that will be processed next
breadcrumbs.push_back(groupPair(currentElem->FirstChildElement(), og));
continue;