]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mvm_cmds.c
fix broken OFS_PARM0 + index code in VM_M_callfunction and
[xonotic/darkplaces.git] / mvm_cmds.c
index 80ea17e256ad097cf675c1bbf59b7673469a508c..7ed9c135d92ae2db97ccdd3e8510a680c3913e0e 100644 (file)
@@ -134,7 +134,7 @@ void VM_M_callfunction(void)
 
        VM_SAFEPARMCOUNTRANGE(1, 8, VM_M_callfunction);
 
-       s = PRVM_G_STRING(OFS_PARM0 + (prog->argc - 1));
+       s = PRVM_G_STRING(OFS_PARM0+(prog->argc - 1)*3);
 
        VM_CheckEmptyString(s);