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:
parent
bfd94a378a
commit
329e5750d3
1 changed files with 1 additions and 1 deletions
|
@ -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]));
|
||||||
|
|
Loading…
Reference in a new issue