Fix KeyValues.SetUInt64 truncating value (#635).

This commit is contained in:
Nicholas Hastings 2017-07-06 10:48:15 -04:00
parent 44c744b8fd
commit fdac8a1677

View File

@ -189,7 +189,7 @@ static cell_t smn_KvSetUInt64(IPluginContext *pCtx, const cell_t *params)
pCtx->LocalToStringNULL(params[2], &key);
pCtx->LocalToPhysAddr(params[3], &addr);
value = static_cast<uint64>(*addr);
value = *reinterpret_cast<uint64 *>(addr);
pStk->pCurRoot.front()->SetUint64(key, value);
return 1;