Core/Maps: Fixes crash when trying to enter instance with no AccessRequirement in DB.
This commit is contained in:
@@ -544,7 +544,6 @@ namespace Game.Entities
|
||||
}
|
||||
else if (ar.item2 != 0 && !HasItemCount(ar.item2))
|
||||
missingItem = ar.item2;
|
||||
}
|
||||
|
||||
if (Global.DisableMgr.IsDisabledFor(DisableType.Map, target_map, this))
|
||||
{
|
||||
@@ -565,6 +564,7 @@ namespace Game.Entities
|
||||
if (ar.achievement != 0)
|
||||
if (leader == null || !leader.HasAchieved(ar.achievement))
|
||||
missingAchievement = ar.achievement;
|
||||
}
|
||||
|
||||
if (LevelMin != 0 || LevelMax != 0 || failedMapDifficultyXCondition != 0 || missingItem != 0 || missingQuest != 0 || missingAchievement != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user