diff --git a/src/script/api/script_object.hpp b/src/script/api/script_object.hpp index 10ad2aefd9..842966758c 100644 --- a/src/script/api/script_object.hpp +++ b/src/script/api/script_object.hpp @@ -473,6 +473,15 @@ public: { return this->data; } + + /** + * The arrow operator on this reference returns the reference counted object. + * @return Pointer to the underlying object. + */ + const T *operator->() const + { + return this->data; + } }; #endif /* SCRIPT_OBJECT_HPP */