Use nameof() to reference image fields.
This commit is contained in:
@@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
public readonly string HitAnim = null;
|
||||
|
||||
[Desc("Sequence of impact animation to use.")]
|
||||
[SequenceReference("HitAnim", allowNullImage: true)]
|
||||
[SequenceReference(nameof(HitAnim), allowNullImage: true)]
|
||||
public readonly string HitAnimSequence = "idle";
|
||||
|
||||
[PaletteReference]
|
||||
|
||||
Reference in New Issue
Block a user