diff --git a/code/qcommon/vm_interpreted.c b/code/qcommon/vm_interpreted.c index 912ca719..7ff0e16a 100644 --- a/code/qcommon/vm_interpreted.c +++ b/code/qcommon/vm_interpreted.c @@ -884,7 +884,7 @@ nextInstruction2: ((float *) opStack)[opStackOfs] = (float) opStack[opStackOfs]; goto nextInstruction; case OP_CVFI: - opStack[opStackOfs] = (int) ((float *) opStack)[opStackOfs]; + opStack[opStackOfs] = Q_ftol(((float *) opStack)[opStackOfs]); goto nextInstruction; case OP_SEX8: opStack[opStackOfs] = (signed char) opStack[opStackOfs];