diff --git a/libraries/libmesosphere/include/mesosphere/kern_k_auto_object.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_auto_object.hpp index 8f429bf55..38cf66e06 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_auto_object.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_k_auto_object.hpp @@ -192,7 +192,7 @@ namespace ams::kern { } public: constexpr ALWAYS_INLINE KScopedAutoObject() : obj(nullptr) { /* ... */ } - constexpr KScopedAutoObject(T *o) : obj(o) { + constexpr ALWAYS_INLINE KScopedAutoObject(T *o) : obj(o) { if (this->obj != nullptr) { this->obj->Open(); }