Lua/LuaCoroutine: Fixed movement assignation operator

This commit is contained in:
Lynix 2018-12-19 22:08:50 +01:00
parent beed59b94c
commit 0740ee456a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;
}