Fix setting the position of the wrong actor

This commit is contained in:
abcdefg30
2019-09-22 14:44:35 +02:00
committed by Paul Chote
parent ab87e78dff
commit 39f8d34494

View File

@@ -121,7 +121,7 @@ namespace OpenRA.Mods.Common.Activities
var move = actor.Trait<IMove>();
var pos = actor.Trait<IPositionable>();
pos.SetPosition(self, exitSubCell.Value.First, exitSubCell.Value.Second);
pos.SetPosition(actor, exitSubCell.Value.First, exitSubCell.Value.Second);
pos.SetVisualPosition(actor, spawn);
actor.CancelActivity();