﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
3239	Formations -  memberPositions[entity] is undefined when calling GetFormationAnimation for entity switching into idle state	elexis		"On an a18 match, the following error appeared:

First this warning on '''turn 7742'''
{{{
WARNING: JavaScript warning: simulation/components/Formation.js line 219
reference to undefined property this.memberPositions[entity]
}}}
with the following error on the same turn, every turn in '''7742-7754''' (except 7752 and 7753) and on turn '''11854''':

{{{
ERROR: JavaScript error: simulation/components/Formation.js line 219
TypeError: this.memberPositions[entity] is undefined
  Formation.prototype.GetFormationAnimation@simulation/components/Formation.js:219:6
  UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.IDLE.enter@simulation/components/UnitAI.js:1405:7
  FSM.prototype.SwitchToNextState@simulation/helpers/FSM.js:376:1
  FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:284:4
  UnitAI.prototype.OnMotionChanged@simulation/components/UnitAI.js:3803:63
ERROR: Script message handler OnMotionChanged failed
}}}

The other warnings and errors are known:
On turn 615: #3187
On turn 12594: #3149

The error is reproducible by replaying the attached commands.txt"	defect	new	Should Have	Backlog	UI & Simulation				
