mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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 This was SVN commit r22029.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2018 Wildfire Games.
|
||||
/* Copyright (C) 2019 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -539,7 +539,7 @@ public:
|
||||
entdata.size = cmpObstruction->GetSize().ToInt_RoundToInfinity();
|
||||
|
||||
// Remember this entity
|
||||
m_EntityData.insert(ent, entdata);
|
||||
m_EntityData.insert_or_assign(ent, entdata);
|
||||
break;
|
||||
}
|
||||
case MT_PositionChanged:
|
||||
|
||||
Reference in New Issue
Block a user