fix: Fixes out of range crash with murder context (#1429)

This commit is contained in:
Kamron Batman 2023-07-22 09:12:04 -07:00 • committed by GitHub
parent f77dd91811
commit 8eb480bdf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 37 deletions

View file

@ -160,7 +160,7 @@ public class ReportMurdererGump : Gump
if (killer is PlayerMobile pk)
{
// Increment their short term murders, their kills, and reset the murder decay time
PlayerMurderSystem.OnPlayerMurder(pk, true);
PlayerMurderSystem.OnPlayerMurder(pk);
pk.SendLocalizedMessage(1049067); // You have been reported for murder!