Skip to content

Commit

Permalink
GameSiegeRam.Aim: Fix NRE
Browse files Browse the repository at this point in the history
Caused by 83db5c7
  • Loading branch information
bm01 committed Aug 1, 2024
1 parent 1671ef8 commit b35b04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameServer/gameobjects/SiegeWeapon/GameSiegeRam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public override void Aim()
//Limit 2 Rams aimed at door at a time
//Check # of rams on the target
int ramsAimedAtTarget=0;
foreach (GameNPC npc in TargetObject.GetNPCsInRadius(600))
foreach (GameNPC npc in Owner.TargetObject.GetNPCsInRadius(600))
{
if(npc is GameSiegeRam ram)
{
Expand Down

0 comments on commit b35b04a

Please sign in to comment.