We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CCMutableArray::getIndexOfObject returns 0 on both "index 0" and "not existing"
CCMutableArray::getIndexOfObject returns 0 on both "index 0" and "not existing"
Bug #948 [Closed]
- Subject changed from CCMutableArray::getIndexOfObject returns 0 on both "index 0" and "not exist" to CCMutableArray::getIndexOfObject returns 0 on both "index 0" and "not existing"
- Description updated (diff)
- Status changed from New to Resolved
- Project changed from cocos2d-x to cpp
- Category deleted (
5) - Target version deleted (
cocos2d-1.0.1-x-0.12.0)
Status: | Closed | |
---|---|---|
Start date: | 2012-01-16 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | - | |
Target version: | - |
Index of array starts from 0, but this function return 0 to indicate an error, e.g. pObject isn’t existing in the array.