Skip to content

Commit

Permalink
add null check to olthoi killer (#3893)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmriggs authored Aug 23, 2022
1 parent bfd6cd3 commit 97c3470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ACE.Server/WorldObjects/Creature_Death.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ protected void CreateCorpse(DamageHistoryInfo killer)
if (player != null)
{
corpse.SetPosition(PositionType.Location, corpse.Location);
var dropped = killer.IsOlthoiPlayer ? player.CalculateDeathItems_Olthoi(corpse) : player.CalculateDeathItems(corpse);
var dropped = killer != null && killer.IsOlthoiPlayer ? player.CalculateDeathItems_Olthoi(corpse) : player.CalculateDeathItems(corpse);
corpse.RecalculateDecayTime(player);

if (dropped.Count > 0)
Expand Down

0 comments on commit 97c3470

Please sign in to comment.