#4131 closed defect (fixed)
[PATCH] SwitchMarketOrder error
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 21 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
This error occured when a player was defeated with r18581:
ERROR: JavaScript error: simulation/components/UnitAI.js line 5222 TypeError: this.order is undefined UnitAI.prototype.SwitchMarketOrder@simulation/components/UnitAI.js:5222:1 Trader.prototype.SwitchMarket@simulation/components/Trader.js:260:3 Mirage.prototype.UpdateTraders@simulation/components/Mirage.js:182:3 Mirage.prototype.OnVisibilityChanged@simulation/components/Mirage.js:196:3
Not sure if it's that, but noone investigated this case yet as far as I know:
2016-06-03-QuakeNet-#0ad-dev.log:22:17 <@leper> another possible issue with that commit: what happens if one of the markets changes owner right before the trade is done?
Attachments (2)
Change History (7)
by , 8 years ago
Attachment: | commands.txt added |
---|
by , 8 years ago
Attachment: | ticket4131.patch added |
---|
comment:1 by , 8 years ago
Keywords: | review added; mimo removed |
---|---|
Summary: | SwitchMarketOrder error → [PATCH] SwitchMarketOrder error |
comment:2 by , 8 years ago
- How can we reproduce the bug? Was it related to that comment?
- Perhaps there could be some test that ensures that a trade cart has no more work orders after ownership change etc.?
- This one hunk could become
return this.MoveToPoint(point.x, point.z)) || this.MoveToMarket(targetMarket)
Version 0, edited 8 years ago by (next)
comment:5 by , 8 years ago
Keywords: | patch added; review removed |
---|
Thanks for the patch mimo! Sorry that we couldn't get to review this sooner.
Note:
See TracTickets
for help on using tickets.
Error occurs on turn 9015