diff --git a/cocos/2d/CCEventListener.h b/cocos/2d/CCEventListener.h index 2cc8d47343..90136e64c2 100644 --- a/cocos/2d/CCEventListener.h +++ b/cocos/2d/CCEventListener.h @@ -84,7 +84,7 @@ public: inline void setEnabled(bool enabled) { _isEnabled = enabled; }; /** Checks whether the listener is enabled */ - inline bool isEnabled() { return _isEnabled; }; + inline bool isEnabled() const { return _isEnabled; }; protected: