From 91b8bbdf0bf870f74ae53c0260d1454c051e6a6f Mon Sep 17 00:00:00 2001 From: Helias Date: Sat, 18 Apr 2020 14:29:37 +0200 Subject: [PATCH] fix(build): add casting to uint32 --- src/mod_learnspells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_learnspells.cpp b/src/mod_learnspells.cpp index f14251a..7c6fca5 100644 --- a/src/mod_learnspells.cpp +++ b/src/mod_learnspells.cpp @@ -233,7 +233,7 @@ class LearnSpellsOnLevelUp : public PlayerScript continue; if (DisableMgr::IsDisabledFor(DISABLE_TYPE_SPELL, spellInfo->Id, player)) continue; - if (spellInfo->BaseLevel != level && sSpellMgr->IsSpellValid(spellInfo)) + if (spellInfo->BaseLevel != uint32(level) && sSpellMgr->IsSpellValid(spellInfo)) continue; bool valid = false;