Skip to content

Commit

Permalink
Fix crash on Vendor inventory load (#3448)
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 authored Feb 5, 2021
1 parent a3f55cd commit b71f606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ACE.Server/WorldObjects/Vendor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private void LoadInventory()
}
}

if (!PropertyManager.GetBool("vendor_shop_uses_generator").Item)
if (!PropertyManager.GetBool("vendor_shop_uses_generator").Item && Biota.PropertiesGenerator != null)
{
foreach (var item in Biota.PropertiesGenerator.Where(x => x.WhereCreate.HasFlag(RegenLocationType.Shop)))
{
Expand Down

0 comments on commit b71f606

Please sign in to comment.