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,15 +55,19 @@ public:
unsigned int count(void) unsigned int count(void)
{ {
unsigned int uCount = 0; unsigned int uCount = 0;
CCMutableArrayIterator it;
for (it = m_array.begin(); it != m_array.end(); ++it) if (!m_array.empty())
{ {
if (*it == NULL) CCMutableArrayIterator it;
for (it = m_array.begin(); it != m_array.end(); ++it)
{ {
break; if (*it == NULL)
} {
break;
}
++uCount; ++uCount;
}
} }
return uCount; return uCount;