Fix a crash when a SourceActor does not occupy space
This commit is contained in:
@@ -219,11 +219,13 @@ namespace OpenRA.GameRules
|
||||
var args = new WarheadArgs
|
||||
{
|
||||
Weapon = this,
|
||||
Source = firedBy.CenterPosition,
|
||||
SourceActor = firedBy,
|
||||
WeaponTarget = target
|
||||
};
|
||||
|
||||
if (firedBy.OccupiesSpace != null)
|
||||
args.Source = firedBy.CenterPosition;
|
||||
|
||||
Impact(target, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user