Bugfix, found by qqshka.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2936 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2008-03-10 15:24:25 +00:00
parent 9a59674c19
commit 85c12e3a9c

View file

@ -640,7 +640,7 @@ static int syscallqvm (void *offset, unsigned int mask, int fn, const int *arg)
break;
case G_SPRINT:
if ((unsigned)VM_LONG(arg[0]) >= sv.allocated_client_slots)
if ((unsigned)VM_LONG(arg[0]) > sv.allocated_client_slots)
return 0;
SV_ClientPrintf(&svs.clients[VM_LONG(arg[0])-1], VM_LONG(arg[1]), "%s", VM_POINTER(arg[2]));
break;