Lua/LuaInstance: Fix defaulting floating point
Former-commit-id: 2e12b456c7e998253d58100948c9b069a00abca4
This commit is contained in:
parent
6808d60cc1
commit
e447b6c928
|
|
@ -88,7 +88,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
std::enable_if_t<!std::is_integral<T>::value && !std::is_enum<T>::value, unsigned int> LuaImplQueryArg(const LuaInstance& instance, int index, T* arg, const T& defValue, TypeTag<T> tag)
|
std::enable_if_t<!std::is_integral<T>::value && !std::is_enum<T>::value && !std::is_floating_point<T>::value, unsigned int> LuaImplQueryArg(const LuaInstance& instance, int index, T* arg, const T& defValue, TypeTag<T> tag)
|
||||||
{
|
{
|
||||||
if (instance.IsValid(index))
|
if (instance.IsValid(index))
|
||||||
return LuaImplQueryArg(instance, index, arg, tag);
|
return LuaImplQueryArg(instance, index, arg, tag);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue