* Fix null ref exception in PrayerSystem
* Also check that prayable ent/comp still exist
_quickDialog.OpenDialog(actor.PlayerSession, Loc.GetString(comp.Verb), Loc.GetString("prayer-popup-notify-pray-ui-message"), (string message) =>
{
- Pray(actor.PlayerSession, comp, message);
+ // Make sure the player's entity and the Prayable entity+component still exist
+ if (actor?.PlayerSession != null && HasComp<PrayableComponent>(uid))
+ Pray(actor.PlayerSession, comp, message);
});
},
Impact = LogImpact.Low,