Merge pull request #488 from celeron55/fix_lua_variant_setbuffer

Fix Variant:SetBuffer and VariantMap:SetBuffer in Lua
This commit is contained in:
Lasse Öörni 2014-10-13 14:54:29 +03:00
Родитель 4f5c3d2e9b 86a035decf
Коммит c1b116ee50
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -261,7 +261,7 @@ static void VariantSetString(Variant* variant, const String value)
static void VariantSetBuffer(Variant* variant, const VectorBuffer& value)
{
*variant = value.GetData();
variant->SetBuffer(value.GetData(), value.GetBuffer().Size());
}
static void VariantSetResourceRef(Variant* variant, const ResourceRef& value)
@ -361,7 +361,7 @@ static void VariantMapSetString(VariantMap* vmap, const String& key, const Strin
static void VariantMapSetBuffer(VariantMap* vmap, const String& key, const VectorBuffer& value)
{
(*vmap)[StringHash(key)] = value.GetData();
(*vmap)[StringHash(key)].SetBuffer(value.GetData(), value.GetBuffer().Size());
}
static void VariantMapSetResourceRef(VariantMap* vmap, const String& key, const ResourceRef& value)