diff options
Diffstat (limited to 'src/crepe/api/Script.h')
| -rw-r--r-- | src/crepe/api/Script.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h index 373b253..8356fd2 100644 --- a/src/crepe/api/Script.h +++ b/src/crepe/api/Script.h @@ -127,6 +127,7 @@ protected:  	Script() = default;  	//! Only \c BehaviorScript instantiates Script  	friend class BehaviorScript; +  public:  	// std::unique_ptr destroys script  	virtual ~Script(); @@ -180,7 +181,8 @@ private:  template <>  void Script::subscribe(const EventHandler<CollisionEvent> & callback);  template <> -void Script::subscribe(const EventHandler<CollisionEvent> & callback, event_channel_t) = delete; +void Script::subscribe(const EventHandler<CollisionEvent> & callback, event_channel_t) +	= delete;  } // namespace crepe  |