Serialize the correct player in FrozenActor-targeting orders.

This commit is contained in:
Paul Chote
2018-01-01 12:38:25 +00:00
committed by ltem
parent b3cde077fc
commit f8abd5d319
3 changed files with 11 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ namespace OpenRA.Mods.Common.Traits
{
frozenStates = new PlayerDictionary<FrozenState>(self.World, (player, playerIndex) =>
{
var frozenActor = new FrozenActor(self, footprint, player.Shroud, startsRevealed);
var frozenActor = new FrozenActor(self, footprint, player, startsRevealed);
if (startsRevealed)
UpdateFrozenActor(self, frozenActor, playerIndex);
player.PlayerActor.Trait<FrozenActorLayer>().Add(frozenActor);