diff --git a/src/scripting/vm/vmexec.h b/src/scripting/vm/vmexec.h index feaf80243..fa6b267af 100644 --- a/src/scripting/vm/vmexec.h +++ b/src/scripting/vm/vmexec.h @@ -1033,7 +1033,7 @@ static int Exec(VMFrameStack *stack, const VMOP *pc, VMReturn *ret, int numret) NEXTOP; OP(SRL_KR): ASSERTD(a); ASSERTKD(B); ASSERTD(C); - reg.d[a] = (unsigned)konstd[B] >> C; + reg.d[a] = (unsigned)konstd[B] >> reg.d[C]; NEXTOP; OP(SRA_RR):