]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Make sure self parameter works on client droptofloor builtin
authorMario <mario@smbclan.net>
Sun, 31 May 2020 21:40:50 +0000 (07:40 +1000)
committerMario <mario@smbclan.net>
Sun, 31 May 2020 21:40:50 +0000 (07:40 +1000)
clvm_cmds.c

index edeb93ea339695e8c3a31b678241a512df2bab45..dc6e667d97464e00fac9451702d693924b065c60 100644 (file)
@@ -534,7 +534,7 @@ static void VM_CL_droptofloor (prvm_prog_t *prog)
        PRVM_G_FLOAT(OFS_RETURN) = 0;
 
        // optional entity parameter for self (EXT_ENTITYPARAM)
-       if (prog->argc >= 0)
+       if (prog->argc >= 1)
                ent = PRVM_G_EDICT(OFS_PARM0);
        else
                ent = PRVM_PROG_TO_EDICT(PRVM_clientglobaledict(self));