﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
6175	Rally point - pick up treasures bug	Langbart		"While playing the latest SVN version [25403] on a random map called `Lower Nubia`, I received some errors while collecting treasures. 
To reproduce this, send all your starting units to collect treasures around the CC, start producing units in the CC and set the rally point on the treasures. Once a unit is in production but there are no more treasures around the CC, the errors occur.
[[Image(ticket:6175:rally_point_treasure.jpg, 800px, center)]]

{{{
0 A.D. (0.0.25) Main log (warnings and errors only)
ERROR: Error in timer on entity 150, IID80, function ProgressTimeout: ReferenceError: target is not defined
UnitAI.prototype.CollectTreasureNearPosition@simulation/components/UnitAI.js:5625:3 
collect-treasure-near-position/<@simulation/helpers/Commands.js:85:14
collect-treasure-near-position@simulation/helpers/Commands.js:84:67 
ProcessCommand@simulation/helpers/Commands.js:53:23 
ProductionQueue.prototype.SpawnUnits@simulation/components/ProductionQueue.js:748:18 
ProductionQueue.prototype.ProgressTimeout@simulation/components/ProductionQueue.js:840:26 
Timer.prototype.OnUpdate@simulation/components/Timer.js:139:44

Engine exited successfully on 2021-05-09 at 02:23:28 with 1384 message(s), 1 error(s) and 0 warning(s).
}}}

The problem is not reproducible for A24b.
I will attach a replay file - 9_may_21.zip\\
This behavior can be observed for the first time with the changeset version [24999]."	defect	new	Should Have	Alpha 25	UI – Game setup				
