Walzer, my congratulations =) Wishing you and your wife a happy and healthy new baby. Of course you can always do what you like, i’m not hurry, just want make cocos2d-x better
Minggo, i’m understand, but when i examine code, i can’t find any example of this situation. This is why i suggest discuss changes.
And, theoretically if i meet somewhere situation you described… Is it correct logic? We insert in array three objects, but
count() returns that here only two objects…
P.S. Whe have one call of
CCTouchDispatcher::forceAddHandler but code insert handler between of existing handlers or adds it to end of list, so i just add assert
assert(uIndex <= count()); to method. Or i’ve missed something?