cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

[cocos2d-x v3.10] MenuItemFont has a problem? #15010

Open laniolove opened 8 years ago

laniolove commented 8 years ago

MenuItemFont instance run a action, the action is FlipX::create(true), the program crash. How to solve the problem?

MenuItemFont has not _textureAtlas member variable, but it use the variable(force MenuItemFont to convert to Sprite), When flip update it.

so the _textureAtlas is wild pointer, isn't it?

minggo commented 8 years ago

Could you show me some test codes?