From e0b714daccece743d2ac0e1aa5a97e988a9c5508 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 17 May 2016 18:11:05 +0200 Subject: [PATCH] Sdk/LuaAPI: Fix handles retrieval Former-commit-id: a1704c9ded36a42badda6303ac28018797772e82 --- SDK/include/NDK/LuaAPI.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDK/include/NDK/LuaAPI.inl b/SDK/include/NDK/LuaAPI.inl index cbd4e7c4a..ae2da917c 100644 --- a/SDK/include/NDK/LuaAPI.inl +++ b/SDK/include/NDK/LuaAPI.inl @@ -255,14 +255,14 @@ namespace Nz inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Ndk::EntityHandle* handle, TypeTag) { - *handle = std::move(*static_cast(instance.CheckUserdata(index, "Entity"))); + *handle = *static_cast(instance.CheckUserdata(index, "Entity")); return 1; } inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Ndk::WorldHandle* handle, TypeTag) { - *handle = std::move(*static_cast(instance.CheckUserdata(index, "World"))); + *handle = *static_cast(instance.CheckUserdata(index, "World")); return 1; }