This commit is contained in:
minggo 2011-04-19 11:48:33 +08:00
commit 26da27aaca
1 changed files with 10 additions and 6 deletions

View File

@ -55,6 +55,9 @@ public:
unsigned int count(void)
{
unsigned int uCount = 0;
if (!m_array.empty())
{
CCMutableArrayIterator it;
for (it = m_array.begin(); it != m_array.end(); ++it)
{
@ -65,6 +68,7 @@ public:
++uCount;
}
}
return uCount;
}