From: bones_was_here Date: Tue, 6 Aug 2024 04:01:06 +0000 (+1000) Subject: CLVM: improve getstati() warning X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ad8cba45f422ef8daf0b7c3dc21a4fccb1fdc77;p=xonotic%2Fdarkplaces.git CLVM: improve getstati() warning Signed-off-by: bones_was_here --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 971afbdb..08a629f3 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -2054,7 +2054,7 @@ static void VM_CL_getstati (prvm_prog_t *prog) if(index < 0 || index >= MAX_CL_STATS) { PRVM_G_FLOAT(OFS_RETURN) = 0; - VM_Warning(prog, "VM_CL_getstati: index>=MAX_CL_STATS or index<0\n"); + VM_Warning(prog, "VM_CL_getstati: index(%i) is >=MAX_CL_STATS(%i) or <0\n", index, MAX_CL_STATS); return; }