Fixed a exception when selecting new exiles reach starting zone, would never remove the person from the transport. Also fixes crash when selecting first quest for alliance.

This commit is contained in:
hondacrx
2023-02-27 01:08:19 -05:00
parent e04941bf88
commit 0976986f55
3 changed files with 2 additions and 4 deletions
@@ -127,7 +127,7 @@ namespace Game.DataStorage
conversationTemplate.TextureKitId = templateResult.Read<uint>(2);
conversationTemplate.ScriptId = Global.ObjectMgr.GetScriptId(templateResult.Read<string>(3));
conversationTemplate.Actors = actorsByConversation.TryGetValue(conversationTemplate.Id, out var actors) ? actors.ToList() : null;
conversationTemplate.Actors = actorsByConversation.TryGetValue(conversationTemplate.Id, out var actors) ? actors.ToList() : new();
uint correctedFirstLineId = getFirstLineIdFromAnyLineId(conversationTemplate.FirstLineId);
if (conversationTemplate.FirstLineId != correctedFirstLineId)
-3
View File
@@ -692,9 +692,6 @@ namespace Game.Entities
DuelComplete(DuelCompleteType.Interrupted);
base.CleanupsBeforeDelete(finalCleanup);
if (GetTransport() != null)
GetTransport().RemovePassenger(this);
}
public override void AddToWorld()
+1
View File
@@ -616,6 +616,7 @@ namespace Game
else
SendCharCreate(ResponseCodes.CharCreateError);
newChar.CleanupsBeforeDelete();
newChar.Dispose();
});
}