diff --git a/cocos/2d/CCScene.h b/cocos/2d/CCScene.h index a99912b3f9..de2b2e46eb 100644 --- a/cocos/2d/CCScene.h +++ b/cocos/2d/CCScene.h @@ -63,7 +63,7 @@ public: protected: Scene(); virtual ~Scene(); - bool init(); + virtual bool init() override; friend class Node; friend class SpriteBatchNode;