mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Use iterators for XMBAttributeList and XMBElementList. Fixes #3269.
This was SVN commit r16704.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user