Core: Fix many "errors"/warnings and coding style (3)
Game Errors were found using Cppcheck, open-source static analysis tool
This commit is contained in:
1 parent
abbb896cfb
commit
e3d9768a50
28 files changed
+72
-105
No files matched your search
@@ -1418,7 +1418,8 @@ void GameObject::Use(Unit* user)
|
||||
// full amount unique participants including original summoner
|
||||
if (GetUniqueUseCount() == info->summoningRitual.reqParticipants)
|
||||
{
|
||||
spellCaster = m_ritualOwner ? m_ritualOwner : spellCaster;
|
||||
if (m_ritualOwner)
|
||||
spellCaster = m_ritualOwner;
|
||||
|
||||
spellId = info->summoningRitual.spellId;
|
||||
|
||||
|
||||
Reference in new issue
Block a user