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

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