aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.h
diff options
context:
space:
mode:
authorKittnz <Kittnz@users.noreply.github.com>2019-01-16 20:47:25 +0100
committerGitHub <noreply@github.com>2019-01-16 20:47:25 +0100
commitd1c3ee957962897a8b323e8ca40302fc5ff8c932 (patch)
tree3172d2e387de6b2728ba7eb2700351ba2ad6740d /src/common/Utilities/Util.h
parent583eba3688c1ab8a4c5de38e00939bc491411960 (diff)
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
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r--src/common/Utilities/Util.h2
1 files changed, 1 insertions, 1 deletions
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 E>
-typename std::underlying_type<E>::type AsUnderlyingType(E enumValue)
+constexpr typename std::underlying_type<E>::type AsUnderlyingType(E enumValue)
{
static_assert(std::is_enum<E>::value, "AsUnderlyingType can only be used with enums");
return static_cast<typename std::underlying_type<E>::type>(enumValue);