]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
VM_stringtokeynum: return a float, not an int
[xonotic/darkplaces.git] / prvm_cmds.c
index 9713b10e44f06d0cbfe9f27c655e8420e440f139..11221becdbf94b01f8501a31d7d263f5cc1ed99b 100644 (file)
@@ -3947,7 +3947,7 @@ void VM_stringtokeynum (void)
 {
        VM_SAFEPARMCOUNT( 1, VM_keynumtostring );
 
-       PRVM_G_INT(OFS_RETURN) = Key_StringToKeynum(PRVM_G_STRING(OFS_PARM0));
+       PRVM_G_FLOAT(OFS_RETURN) = Key_StringToKeynum(PRVM_G_STRING(OFS_PARM0));
 }
 
 /*