diff --git a/modules/gdnative/gdnative.h b/modules/gdnative/gdnative.h index e6f40faf0ec..aaf8dd0a7bf 100644 --- a/modules/gdnative/gdnative.h +++ b/modules/gdnative/gdnative.h @@ -76,7 +76,7 @@ public: // things that change per-platform // so there are no setters for this - _FORCE_INLINE_ String get_current_library_path() const { + _FORCE_INLINE_ const String &get_current_library_path() const { return current_library_path; } _FORCE_INLINE_ Vector get_current_dependencies() const {