From 3a309abfab3762d1c3bc2f90b961582e83d5971a Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 18 Jun 2009 17:21:25 +0200 Subject: * 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 --- src/game/GameObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/GameObject.cpp') diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 1169cc780f4..d6aa162b50a 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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) { -- cgit v1.2.3