[11865] Fix faction check for EventAI command ACTION_T_SET_FACTION to also check for faction template.

This commit is contained in:
Schmoozerd 2011-12-16 19:12:35 +01:00
parent bcc470ac43
commit f5b94f00b5
2 changed files with 2 additions and 2 deletions

View file

@ -536,7 +536,7 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts()
break; break;
} }
case ACTION_T_SET_FACTION: case ACTION_T_SET_FACTION:
if (action.set_faction.factionId !=0 && !sFactionStore.LookupEntry(action.set_faction.factionId)) if (action.set_faction.factionId !=0 && !sFactionTemplateStore.LookupEntry(action.set_faction.factionId))
{ {
sLog.outErrorDb("CreatureEventAI: Event %u Action %u uses nonexistent FactionId %u.", i, j+1, action.set_faction.factionId); sLog.outErrorDb("CreatureEventAI: Event %u Action %u uses nonexistent FactionId %u.", i, j+1, action.set_faction.factionId);
action.set_faction.factionId = 0; action.set_faction.factionId = 0;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11864" #define REVISION_NR "11865"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__