Fix unsigned integer properties being returned as signed integers from Lua functions
This commit is contained in:
parent
7af51b55ac
commit
d17c67b3a4
@ -2486,19 +2486,19 @@ void LuaScriptInterface::LuaGetProperty(lua_State* l, StructProperty property, i
|
|||||||
case StructProperty::TransitionType:
|
case StructProperty::TransitionType:
|
||||||
case StructProperty::ParticleType:
|
case StructProperty::ParticleType:
|
||||||
case StructProperty::Integer:
|
case StructProperty::Integer:
|
||||||
lua_pushinteger(l, *((int*)propertyAddress));
|
lua_pushnumber(l, *((int*)propertyAddress));
|
||||||
break;
|
break;
|
||||||
case StructProperty::UInteger:
|
case StructProperty::UInteger:
|
||||||
lua_pushinteger(l, *((unsigned int*)propertyAddress));
|
lua_pushnumber(l, *((unsigned int*)propertyAddress));
|
||||||
break;
|
break;
|
||||||
case StructProperty::Float:
|
case StructProperty::Float:
|
||||||
lua_pushnumber(l, *((float*)propertyAddress));
|
lua_pushnumber(l, *((float*)propertyAddress));
|
||||||
break;
|
break;
|
||||||
case StructProperty::Char:
|
case StructProperty::Char:
|
||||||
lua_pushinteger(l, *((char*)propertyAddress));
|
lua_pushnumber(l, *((char*)propertyAddress));
|
||||||
break;
|
break;
|
||||||
case StructProperty::UChar:
|
case StructProperty::UChar:
|
||||||
lua_pushinteger(l, *((unsigned char*)propertyAddress));
|
lua_pushnumber(l, *((unsigned char*)propertyAddress));
|
||||||
break;
|
break;
|
||||||
case StructProperty::BString:
|
case StructProperty::BString:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user