mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
parent
dd26d683c6
commit
6dbdaf1160
1 changed files with 1 additions and 1 deletions
|
|
@ -5290,7 +5290,7 @@ UnitAI.prototype.PerformTradeAndMoveToNextMarket = function(currentMarket)
|
|||
|
||||
UnitAI.prototype.MarketRemoved = function(market)
|
||||
{
|
||||
if (this.order.data.target == market)
|
||||
if (this.order && this.order.data && this.order.data.target && this.order.data.target == market)
|
||||
this.UnitFsm.ProcessMessage(this, { "type": "TradingCanceled", "market": market });
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue