diff --git a/engine/source/math/math_ScriptBinding.cc b/engine/source/math/math_ScriptBinding.cc index 159a9237..9dd72a24 100644 --- a/engine/source/math/math_ScriptBinding.cc +++ b/engine/source/math/math_ScriptBinding.cc @@ -92,9 +92,9 @@ ConsoleFunctionWithDocs( mFloor, ConsoleInt, 2, 2, ( val )) @return Returns the integer value closest to the given float */ -ConsoleFunctionWithDocs( mRound, ConsoleFloat, 2, 2, (float v)) +ConsoleFunctionWithDocs( mRound, ConsoleInt, 2, 2, (float v)) { - return mRound( dAtof(argv[1]) ); + return (S32)mRound( dAtof(argv[1]) ); } /*! Use the mCeil function to calculate the next highest integer value from val.