Revert 340fe17f4f partially

The UpdateUInt32Value method is not identical to Set and Set screws up gossip on TC based
This commit is contained in:
Rochet2
2015-02-15 13:52:15 +02:00
parent 32e7a5e065
commit 166dacee83
2 changed files with 15 additions and 0 deletions

View File

@@ -259,6 +259,20 @@ namespace LuaObject
return 0;
}
/**
* Sets the data at the specified index to the given value, converted to an unsigned 32-bit integer.
*
* @param uint16 index
* @param uint32 value
*/
int UpdateUInt32Value(Eluna* /*E*/, lua_State* L, Object* obj)
{
uint16 index = Eluna::CHECKVAL<uint16>(L, 2);
uint32 value = Eluna::CHECKVAL<uint32>(L, 3);
obj->UpdateUInt32Value(index, value);
return 0;
}
/**
* Sets the data at the specified index to the given value, converted to a single-precision floating point value.
*