aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.h
diff options
context:
space:
mode:
authorKittnz <Kittnz@users.noreply.github.com>2019-01-16 20:48:01 +0100
committerGitHub <noreply@github.com>2019-01-16 20:48:01 +0100
commit83e6fde0664cf8ab0c425e574781262893e7b226 (patch)
tree4aecb8e4560b988907581d1ff11cd507b9fee795 /src/common/Utilities/Util.h
parente0c939b0d411fae5db0a19939ee9aa67b614db74 (diff)
Core/Objects: increase sight range of all Infinite, Gigantic and Large objects & correct general default visibility distance (#22892)
Note: This does not make the object active. Some info on range https://trinitycore.atlassian.net/wiki/spaces/tc/pages/74950924/Lua+Scene+Script+Documentation#LuaSceneScriptDocumentation-ActorAOIRange #21111 #21681 #22891 Thanks Kinzcool & Kelno
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 d17e8b83c92..4438bf1863d 100644
--- a/src/common/Utilities/Util.h
+++ b/src/common/Utilities/Util.h
@@ -538,7 +538,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);