From d1c3ee957962897a8b323e8ca40302fc5ff8c932 Mon Sep 17 00:00:00 2001 From: Kittnz Date: Wed, 16 Jan 2019 20:47:25 +0100 Subject: Core/Objects: increase sight range of objects & correct general default visibility distance (#22891) This can be used for anything really. Note: This does not make the object active. #21111 #21681 --- src/common/Utilities/Util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Utilities/Util.h') diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index f378d457648..78019885d99 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -503,7 +503,7 @@ bool CompareValues(ComparisionType type, T val1, T val2) } template -typename std::underlying_type::type AsUnderlyingType(E enumValue) +constexpr typename std::underlying_type::type AsUnderlyingType(E enumValue) { static_assert(std::is_enum::value, "AsUnderlyingType can only be used with enums"); return static_cast::type>(enumValue); -- cgit v1.2.3