From a9635e8c4a4172ee31583b0a8d333fcd65ac7ea7 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 26 Jun 2014 22:52:29 +1200 Subject: [PATCH] Refund the *old* player when a production structure is captured. --- OpenRA.Mods.RA/Player/ProductionQueue.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index fd426bf728..cfce76529f 100644 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -119,10 +119,11 @@ namespace OpenRA.Mods.RA public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner) { + ClearQueue(); + playerPower = newOwner.PlayerActor.Trait(); playerResources = newOwner.PlayerActor.Trait(); developerMode = newOwner.PlayerActor.Trait(); - ClearQueue(); if (!Info.Sticky) {