LeavesTrails only works when actor inworld

This commit is contained in:
dnqbob
2023-10-18 10:05:51 +08:00
committed by Matthias Mailänder
parent d69dbd2793
commit 8b96b75960

View File

@@ -99,7 +99,7 @@ namespace OpenRA.Mods.Common.Traits.Render
void ITick.Tick(Actor self) void ITick.Tick(Actor self)
{ {
if (IsTraitDisabled) if (!self.IsInWorld || IsTraitDisabled)
return; return;
wasStationary = !isMoving; wasStationary = !isMoving;