diff --git a/Source/Utility/Math/Int64Math.cpp b/Source/Utility/Math/Int64Math.cpp index a8228299..dd5b4cf3 100644 --- a/Source/Utility/Math/Int64Math.cpp +++ b/Source/Utility/Math/Int64Math.cpp @@ -1,21 +1,15 @@ #include "Utility/Math/Int64Math.h" +#include + // OFFSET: 0x008C6AE0 // FUNCTION: fn_11919 std::int64_t MaxInt64(const std::int64_t& first, const int& second) { - const std::int64_t value = second; - if (first < value) { - return value; - } - return first; + return std::max(first, static_cast(second)); } // OFFSET: 0x0086BF00 // FUNCTION: fn_11017 std::int64_t sub_86BF00(const int& value, const std::int64_t& other) { - const std::int64_t extended = value; - if (other < extended) { - return extended; - } - return other; + return std::max(static_cast(value), other); }