Fixed a crash in CreateConversation.
This commit is contained in:
@@ -121,6 +121,8 @@ namespace Game.Entities
|
||||
_duration = conversationTemplate.LastLineEndTime;
|
||||
_textureKitId = conversationTemplate.TextureKitId;
|
||||
|
||||
if (conversationTemplate.Actors != null)
|
||||
{
|
||||
for (ushort actorIndex = 0; actorIndex < conversationTemplate.Actors.Count; ++actorIndex)
|
||||
{
|
||||
ConversationActorTemplate actor = conversationTemplate.Actors[actorIndex];
|
||||
@@ -134,7 +136,10 @@ namespace Game.Entities
|
||||
AddDynamicUpdateFieldValue(m_values.ModifyValue(m_conversationData).ModifyValue(m_conversationData.Actors), actorField);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (conversationTemplate.ActorGuids != null)
|
||||
{
|
||||
for (ushort actorIndex = 0; actorIndex < conversationTemplate.ActorGuids.Count; ++actorIndex)
|
||||
{
|
||||
ulong actorGuid = conversationTemplate.ActorGuids[actorIndex];
|
||||
@@ -147,6 +152,7 @@ namespace Game.Entities
|
||||
AddActor(creature.GetGUID(), actorIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Global.ScriptMgr.OnConversationCreate(this, creator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user