diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-06 22:55:29 +0100 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-06 22:55:29 +0100 |
commit | f0666ad35bd072e9e8488cf852824b559ed46338 (patch) | |
tree | 82c9cd1ddf741438108adcb60a1f3aa1fc4629d5 /src/server/game/Conditions/ConditionMgr.cpp | |
parent | 9b474524e76517b77d819a24cf6579144c464ef4 (diff) |
Fixed warning
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 8ff968d697b..3628e9ec312 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -2260,7 +2260,8 @@ bool ConditionMgr::isConditionTypeValid(Condition* cond) const } case CONDITION_SPAWNMASK: { - if (cond->ConditionValue1 >= (UI64LIT(1) << MAX_DIFFICULTY)) + /// @todo: ConditionValue need to be extended to uint64 + if (uint64(cond->ConditionValue1) >= (UI64LIT(1) << MAX_DIFFICULTY)) { TC_LOG_ERROR("sql.sql", "%s has non existing SpawnMask in value1 (%u), skipped.", cond->ToString(true).c_str(), cond->ConditionValue1); return false; |