Use iterators for XMBAttributeList and XMBElementList. Fixes #3269.

This was SVN commit r16704.
This commit is contained in:
leper
2015-06-01 00:29:35 +00:00
parent d3da00dc99
commit f71be3c764
9 changed files with 208 additions and 190 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2013 Wildfire Games.
/* Copyright (C) 2015 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -109,9 +109,7 @@ bool CObjectBase::Load(const VfsPath& pathname)
XERO_ITER_EL(root, child)
{
if (child.GetNodeName() == el_group)
{
variantGroupSizes.push_back(child.GetChildNodes().Count);
}
variantGroupSizes.push_back(child.GetChildNodes().size());
}
m_VariantGroups.resize(variantGroupSizes.size());