diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-05-07 18:52:34 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-05-07 18:52:34 +0200 |
| commit | aa96aa478382524f75796ef8738cb0e0c8236981 (patch) | |
| tree | b2c1585cc0f0c7eef0f485dd3c4bbfa3a120f79b /src/server/game/Spells/SpellMgr.cpp | |
| parent | 7e0b28c70c5dc8e43d277fe00b54db9fe2d9805f (diff) | |
Core/Misc: Cleanup Expression is converted to bool and can be replaced with 'boolean constant'
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index ebcab322106..8151bceef4c 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2042,10 +2042,7 @@ void SpellMgr::LoadEnchantCustomAttr() uint32 oldMSTime = getMSTime(); uint32 size = sSpellItemEnchantmentStore.GetNumRows(); - mEnchantCustomAttr.resize(size); - - for (uint32 i = 0; i < size; ++i) - mEnchantCustomAttr[i] = 0; + mEnchantCustomAttr.resize(size, false); uint32 count = 0; for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i) |
