diff --git a/tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp b/tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp index cb4fc40acb..ac00064941 100644 --- a/tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp +++ b/tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp @@ -118,9 +118,9 @@ void TileDemo::onEnter() BaseTest::onEnter(); } -void TileMapTestScene::onExit() +void TileDemo::onExit() { - TileDemo::onExit(); + BaseTest::onExit(); Director::getInstance()->setDepthTest(false); } void TileDemo::restartCallback(Ref* sender)