diff --git a/deps/ox/src/ox/std/memory.hpp b/deps/ox/src/ox/std/memory.hpp index 32e47a25..ab64d1a4 100644 --- a/deps/ox/src/ox/std/memory.hpp +++ b/deps/ox/src/ox/std/memory.hpp @@ -56,8 +56,7 @@ class UniquePtr { template constexpr void reset(UniquePtr &&other = UniquePtr()) { auto t = m_t; - m_t = other.m_t; - other.m_t = nullptr; + m_t = other.release(); Deleter()(t); }