Fix GameRules_SetPropVector writing data to unexpected addresses instead of to the proxy entity (bug 5592, r=psychonic).
This commit is contained in:
parent
c4331c4795
commit
8dc7f78b0f
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user