This was SVN commit r18174.
This commit is contained in:
mimo 2016-05-14 18:25:35 +00:00
parent dd26d683c6
commit 6dbdaf1160

View File

@ -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 });
};