mirror of https://github.com/axmolengine/axmol.git
fixed crash cause by addChild on win 7.
This commit is contained in:
parent
66673d88fa
commit
6ba111cbff
|
@ -1247,6 +1247,11 @@ void NodeNameTest::onEnter()
|
|||
{
|
||||
TestCocosNodeDemo::BaseTest::onEnter();
|
||||
|
||||
this->scheduleOnce(schedule_selector(NodeNameTest::test),0.05f);
|
||||
}
|
||||
|
||||
void NodeNameTest::test(float dt)
|
||||
{
|
||||
auto parent = Node::create();
|
||||
|
||||
// setName(), getName() and getChildByName()
|
||||
|
|
|
@ -303,6 +303,8 @@ public:
|
|||
virtual std::string subtitle() const override;
|
||||
|
||||
virtual void onEnter() override;
|
||||
|
||||
void test(float dt);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue