fixed crash cause by addChild on win 7.

This commit is contained in:
Dhilan007 2014-07-01 18:23:20 +08:00
parent 66673d88fa
commit 6ba111cbff
2 changed files with 7 additions and 0 deletions

View File

@ -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()

View File

@ -303,6 +303,8 @@ public:
virtual std::string subtitle() const override;
virtual void onEnter() override;
void test(float dt);
};