diff --git a/ChangeLog.md b/ChangeLog.md index 4f37e76d8..1c4e14c6a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -156,6 +156,7 @@ Nazara Engine: - ⚠ **Changed the way resources were Loaded, almost every LoadFromX and OpenFromX methods are now static and create the object themselves.** - ⚠ SoundStream is now responsible for loaders instead of Music, and is now threadsafe (you can now load a stream only once and play it multiple times at the same time) - Added LuaState::RawEqual +- Fixed LuaCoroutine movement assignation operator Nazara Development Kit: - Added ImageWidget (#139) diff --git a/include/Nazara/Lua/LuaCoroutine.inl b/include/Nazara/Lua/LuaCoroutine.inl index 63c7d0eda..43a3f87cb 100644 --- a/include/Nazara/Lua/LuaCoroutine.inl +++ b/include/Nazara/Lua/LuaCoroutine.inl @@ -15,8 +15,7 @@ namespace Nz { LuaState::operator=(std::move(instance)); - m_ref = instance.m_ref; - instance.m_ref = -1; + std::swap(m_ref, instance.m_ref); return *this; }