aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/game/Chat/ChatCommands/ChatCommandHelpers.h8
-rw-r--r--src/server/scripts/Commands/cs_cast.cpp1
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"