Fix for ktx crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3867 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-07-11 16:50:51 +00:00
parent bfd94a378a
commit 329e5750d3
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ static qintptr_t syscallhandle (void *offset, quintptr_t mask, qintptr_t fn, con
case G_CVAR_SET_FLOAT:
{
cvar_t *var;
var = Cvar_Get(VM_POINTER(arg[0]), VM_POINTER(arg[1]), 0, "Gamecode variables");
var = Cvar_Get(VM_POINTER(arg[0]), va("%f", VM_FLOAT(arg[1])), 0, "Gamecode variables");
if (!var)
return -1;
Cvar_SetValue (var, VM_FLOAT(arg[1]));