* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc. --HG-- branch : trunk
This commit is contained in:
1 parent
85e59ecd57
commit
3a309abfab
47 files changed
+98
-93
No files matched your search
@@ -1373,7 +1373,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
||||
return;
|
||||
|
||||
bool self = false;
|
||||
for(int i = 0; i < 3; ++i)
|
||||
for(uint8 i = 0; i < 3; ++i)
|
||||
{
|
||||
if(spellInfo->EffectImplicitTargetA[i] == TARGET_UNIT_CASTER)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user