1
0
Fork 0
forked from fte/fteqw

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

View file

@ -994,7 +994,7 @@ static qintptr_t syscallhandle (void *offset, quintptr_t mask, qintptr_t fn, con
case G_CVAR_SET_FLOAT: case G_CVAR_SET_FLOAT:
{ {
cvar_t *var; 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) if (!var)
return -1; return -1;
Cvar_SetValue (var, VM_FLOAT(arg[1])); Cvar_SetValue (var, VM_FLOAT(arg[1]));