From f538a51ef44a2dd542cf7782e195271085bddcef Mon Sep 17 00:00:00 2001 From: Michael Busby Date: Sun, 27 Jan 2013 14:59:14 -0800 Subject: [PATCH] Fix GameRules_SetPropVector writing data to unexpected addresses instead of to the proxy entity (bug 5592, r=psychonic). --- extensions/sdktools/gamerulesnatives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/sdktools/gamerulesnatives.cpp b/extensions/sdktools/gamerulesnatives.cpp index c29537c5..54457053 100644 --- a/extensions/sdktools/gamerulesnatives.cpp +++ b/extensions/sdktools/gamerulesnatives.cpp @@ -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]);