From: Mario Date: Sun, 31 May 2020 21:40:50 +0000 (+1000) Subject: Make sure self parameter works on client droptofloor builtin X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91a212fe8a8a8a78c20ccd21f60e2910d01126d4;p=xonotic%2Fdarkplaces.git Make sure self parameter works on client droptofloor builtin --- diff --git a/clvm_cmds.c b/clvm_cmds.c index edeb93ea..dc6e667d 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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));