Fix GameRules_SetPropVector writing data to unexpected addresses instead of to the proxy entity (bug 5592, r=psychonic).

This commit is contained in:
Michael Busby 2013-01-27 14:59:14 -08:00
parent c4331c4795
commit 8dc7f78b0f

View File

@ -507,7 +507,7 @@ static cell_t GameRules_SetPropVector(IPluginContext *pContext, const cell_t *pa
if (sendChange)
{
v = (Vector *)((intptr_t)g_pGameRules + offset);
v = (Vector *)((intptr_t)pProxy + offset);
v->x = sp_ctof(vec[0]);
v->y = sp_ctof(vec[1]);
v->z = sp_ctof(vec[2]);