Skip to content

Use std::list to store mechanics objects

elsid requested to merge elsid/openmw:mechanics_objects_list into master

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

Merge request reports