1
0
forked from 0ad/0ad

Don't lose trade gain when ordering a trader.

Introduced in 8f04d2ee90 due to overeagerly stopping trade when leaving
the trading-state.
Noticed in:
https://wildfiregames.com/forum/topic/41264-alpha-25-pre-releaserelease-candidate-build-testing/page/9/?tab=comments#comment-437888.

Differential revision: https://code.wildfiregames.com/D4197
Comment by: @Stan
This was SVN commit r25835.
This commit is contained in:
Freagarach 2021-07-23 05:24:41 +00:00
parent c7a6d49fc8
commit 5fba65e97d

View File

@ -2884,9 +2884,6 @@ UnitAI.prototype.UnitFsmSpec = {
},
"leave": function() {
let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
if (cmpTrader)
cmpTrader.StopTrading();
},
"APPROACHINGMARKET": {