aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-08-17 14:42:04 +0200
committerTreeston <treeston.mmoc@gmail.com>2020-08-17 14:42:27 +0200
commit66491dbfb35bf0a18a277767c011bd5f8c4a7e0c (patch)
tree11c07e44a76bc51f358595b0829658630ff4a5de
parentbbcf00257ebdb75fa30f0484cb185058139f8ae4 (diff)
make compilers happy
-rw-r--r--src/server/game/Chat/ChatCommands/ChatCommandTags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/ChatCommands/ChatCommandTags.h b/src/server/game/Chat/ChatCommands/ChatCommandTags.h
index ba4f6d5a649..51171d29b2c 100644
--- a/src/server/game/Chat/ChatCommands/ChatCommandTags.h
+++ b/src/server/game/Chat/ChatCommands/ChatCommandTags.h
@@ -59,7 +59,7 @@ namespace Trinity::ChatCommands
{
if (*(pos++) == c1)
{
- if constexpr (sizeof...(chars))
+ if constexpr (sizeof...(chars) > 0)
return ExactSequence<chars...>::_TryConsume(pos);
else if (Trinity::Impl::ChatCommands::tokenize(pos)) /* we did not consume the entire token */
return nullptr;