View Single Post
  #3  
Old 10-21-2009, 04:31 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Hmm.
void QuestManager::setanim(int npc_type, int animnum) {
//Cisyouc: adds appearance changes
Mob* thenpc = entity_list.GetMobByNpcTypeID(npc_type);
if(animnum < 0 || animnum >= _eaMaxAppearance)
return;
thenpc->SetAppearance(EmuAppearance(animnum));
}
There's no checking to ensure the mob is valid before setting the appearance.
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote