diff --git a/src/reverse/LuaRED.h b/src/reverse/LuaRED.h index 6db2cddc..9b18b4fa 100644 --- a/src/reverse/LuaRED.h +++ b/src/reverse/LuaRED.h @@ -57,7 +57,10 @@ template struct LuaRED { if (aObject.get_type() == sol::type::number) { - result.value = apAllocator->New(aObject.as()); + if (aObject.is()) + { + result.value = apAllocator->New(aObject.as()); + } } else if (IsLuaCData(aObject)) {