﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,phab_field
6018,Siege units automatically pack after unpacking if they are in formation,Langbart,,"When a siege unit is in a formation, with one or more military units e.g.soldiers or other siege units and gets the order to 'unpack', it does so but immediately re-packs itself.

Also when I double click on 'unpack' I get these errors. They only occur if the siege units is in a formation, without formation a double click on 'unpack' will not produce errors.

{{{
ERROR: JavaScript error: simulation/components/UnitAI.js line 4206 order is undefined
UnitAI.prototype.GetOrderData@simulation/components/UnitAI.js:4206:7 
UnitAI.prototype.PushOrderFront@simulation/components/UnitAI.js:4051:74 
UnitAI.prototype.ReplaceOrder@simulation/components/UnitAI.js:4178:8 
UnitAI.prototype.AddOrder@simulation/components/UnitAI.js:5408:8 
UnitAI.prototype.CancelUnpack@simulation/components/UnitAI.js:5999:8 
cancel-pack@simulation/helpers/Commands.js:690:15 
ProcessCommand@simulation/helpers/Commands.js:53:23
ERROR: Failed to call ProcessCommand() global script function
}}}
In the GIF I tried first the 'unpack' in formation, then 'unpack' without formation and finally a double click in formation on 'unpack'. 
[[Image(ticket:6006:siege_units.gif, 600px, center)]]
Tested with 0ad-0.0.24rc1-24875-alpha-osx64.dmg and SVN version 24892.\\
This behaviour can not be reproduced in the A23b bundle.\\
The pack/ unpack bug can first be noticed with [24467].\\
The double click error can first be noticed with [24869].",defect,new,Release Blocker,Alpha 24,UI – In-game,,,,
