diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-03-19 20:34:22 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-03-19 20:34:22 +0100 |
commit | 105165c35c4847ff9c21f18c4467901123cd4f1a (patch) | |
tree | 044eb42519d23b95d630a1a376d7a1f530ff5230 | |
parent | 1cf8163c5823eadc5558ffcb82e530c37f64c8f6 (diff) |
nopch fix
-rw-r--r-- | src/server/game/Chat/ChatCommands/ChatCommandHelpers.h | 8 | ||||
-rw-r--r-- | src/server/scripts/Commands/cs_cast.cpp | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/server/game/Chat/ChatCommands/ChatCommandHelpers.h b/src/server/game/Chat/ChatCommands/ChatCommandHelpers.h index 26ee15a0957..ff9b5a3b8fc 100644 --- a/src/server/game/Chat/ChatCommands/ChatCommandHelpers.h +++ b/src/server/game/Chat/ChatCommands/ChatCommandHelpers.h @@ -30,9 +30,9 @@ static constexpr char COMMAND_DELIMITER = ' '; /***************** HELPERS *************************\ |* These really aren't for outside use... *| \***************************************************/ -inline size_t tokenize(char const*& end) +inline std::size_t tokenize(char const*& end) { - size_t len = 0; + std::size_t len = 0; for (; *end && *end != COMMAND_DELIMITER; ++end, ++len); for (; *end && *end == COMMAND_DELIMITER; ++end); return len; @@ -59,7 +59,7 @@ struct are_all_assignable<T1, T2, Ts...> static constexpr bool value = std::is_assignable_v<T1&, T2> && are_all_assignable<T1, Ts...>::value; }; -template <size_t index, typename T1, typename... Ts> +template <std::size_t index, typename T1, typename... Ts> struct get_nth : get_nth<index-1, Ts...> { }; template <typename T1, typename... Ts> @@ -68,7 +68,7 @@ struct get_nth<0, T1, Ts...> using type = T1; }; -template <size_t index, typename... Ts> +template <std::size_t index, typename... Ts> using get_nth_t = typename get_nth<index, Ts...>::type; } diff --git a/src/server/scripts/Commands/cs_cast.cpp b/src/server/scripts/Commands/cs_cast.cpp index 281d4671432..7a651f0d6ab 100644 --- a/src/server/scripts/Commands/cs_cast.cpp +++ b/src/server/scripts/Commands/cs_cast.cpp @@ -28,6 +28,7 @@ EndScriptData */ #include "Language.h" #include "Player.h" #include "RBAC.h" +#include "SpellInfo.h" #include "SpellMgr.h" #include "WorldSession.h" |