From c15eb27b5a04d3f2783f474fc5f4b4c5c9f2894b Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Sat, 10 May 2014 14:37:46 -0700 Subject: [PATCH] conversion of uint32 to uint16 explicitly --- zone/spells.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 10c7b9176..ddf90a91c 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -180,7 +180,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, uint16 slot, if(IsClient()) CastToClient()->SendSpellBarEnable(spell_id); if(casting_spell_id && IsNPC()) - CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot); + CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot); return(false); } @@ -200,7 +200,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, uint16 slot, if(IsClient()) CastToClient()->SendSpellBarEnable(spell_id); if(casting_spell_id && IsNPC()) - CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot); + CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot); return(false); } @@ -793,7 +793,7 @@ void Mob::InterruptSpell(uint16 message, uint16 color, uint16 spellid) } if(casting_spell_id && IsNPC()) { - CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot); + CastToNPC()->AI_Event_SpellCastFinished(false, (uint8)casting_spell_slot); } if(casting_spell_type == 1 && IsClient()) { //Rest AA Timer on failed cast @@ -2139,7 +2139,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 } if(IsNPC()) - CastToNPC()->AI_Event_SpellCastFinished(true, slot); + CastToNPC()->AI_Event_SpellCastFinished(true, (uint8)slot); return true; }