From 66386cca5948aa67bee1bb2bb7d32f56d7dacd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Sun, 24 Oct 2004 15:41:25 +0000 Subject: [PATCH] Fixed entity_set_byte --- dlls/engine/entity.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index d546993d..590f11f2 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -1206,22 +1206,22 @@ static cell AMX_NATIVE_CALL entity_set_byte(AMX *amx, cell *params) switch (idx) { case controller1: - pEnt->v.controller[1] = iNewValue; + pEnt->v.controller[0] = iNewValue; break; case controller2: - pEnt->v.controller[2] = iNewValue; + pEnt->v.controller[1] = iNewValue; break; case controller3: - pEnt->v.controller[3] = iNewValue; + pEnt->v.controller[2] = iNewValue; break; case controller4: - pEnt->v.controller[4] = iNewValue; + pEnt->v.controller[3] = iNewValue; break; case blending1: - pEnt->v.blending[1] = iNewValue; + pEnt->v.blending[0] = iNewValue; break; case blending2: - pEnt->v.blending[2] = iNewValue; + pEnt->v.blending[1] = iNewValue; break; default: return 0;