Use std::list to store mechanics objects
To make the order of elements deterministic. Using memory address based objects as map key makes order of elements there nondeterministic. Later it can be replaced with vector when there are no indirect munipulations with container inside iteration loops.
Change map key to const MWWorld::LiveCellRefBase*
to avoid erasing and inserting elements on MWWorld::Ptr
update.
Store CharacterController
by value instead of pointer to avoid redundant memory allocation.
Edited by elsid