mirror of https://github.com/axmolengine/axmol.git
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x
This commit is contained in:
commit
26da27aaca
|
@ -55,6 +55,9 @@ public:
|
||||||
unsigned int count(void)
|
unsigned int count(void)
|
||||||
{
|
{
|
||||||
unsigned int uCount = 0;
|
unsigned int uCount = 0;
|
||||||
|
|
||||||
|
if (!m_array.empty())
|
||||||
|
{
|
||||||
CCMutableArrayIterator it;
|
CCMutableArrayIterator it;
|
||||||
for (it = m_array.begin(); it != m_array.end(); ++it)
|
for (it = m_array.begin(); it != m_array.end(); ++it)
|
||||||
{
|
{
|
||||||
|
@ -65,6 +68,7 @@ public:
|
||||||
|
|
||||||
++uCount;
|
++uCount;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return uCount;
|
return uCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue