Fix for special atk sql missing a type.

Fix for a crash in quest manager setanim.
Fix for pfs_list not compiling on x64 windows.
This commit is contained in:
KimLS
2013-08-10 14:17:06 -07:00
parent 926e2f7939
commit 406e2f84eb
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1631,7 +1631,7 @@ void QuestManager::disable_proximity_say() {
void QuestManager::setanim(int npc_type, int animnum) {
//adds appearance changes
Mob* thenpc = entity_list.GetMobByNpcTypeID(npc_type);
if(animnum < 0 || animnum >= _eaMaxAppearance)
if(!thenpc || animnum < 0 || animnum >= _eaMaxAppearance)
return;
thenpc->SetAppearance(EmuAppearance(animnum));
}