Change internals of EntityMap to use an std::vector
This generally makes this code cleaner and easier to maintain, while also being more modern and fully tested.
Looked at by: leper
Differential Revision: https://code.wildfiregames.com/D8
Change internals of EntityMap to use an std::vector
Description
Details
Event TimelineComment Actions The reason for the crash is that find() didn't expect to be called with an entity below FIRST_VALID_ENTITY_ID, i.e. INVALID_ENTITY. This should return end() instead so I need to amend this code. Inserting stuff before FIRST_VALID_ENTITY_ID should probably still crash so the ENSURE there should be fine.
|