1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00

Address feedback

This commit is contained in:
unknown 2023-04-19 02:31:40 +02:00
parent ea1abf8485
commit 9368941f62
2 changed files with 1 additions and 4 deletions

View file

@ -902,9 +902,7 @@ namespace MWWorld
// we assume that these records are empty on purpose (i.e. to remove old pathgrid on an updated cell) // we assume that these records are empty on purpose (i.e. to remove old pathgrid on an updated cell)
if (isDeleted || pathgrid.mPoints.empty() || pathgrid.mEdges.empty()) if (isDeleted || pathgrid.mPoints.empty() || pathgrid.mEdges.empty())
{ {
auto it = mStatic.find(cell); mStatic.erase(cell);
if (it != mStatic.end())
mStatic.erase(it);
return RecordId(ESM::RefId(), isDeleted); return RecordId(ESM::RefId(), isDeleted);
} }

View file

@ -414,7 +414,6 @@ namespace MWWorld
class Store<ESM::Pathgrid> : public DynamicStore class Store<ESM::Pathgrid> : public DynamicStore
{ {
private: private:
std::unordered_map<ESM::RefId, ESM::Pathgrid> mStatic; std::unordered_map<ESM::RefId, ESM::Pathgrid> mStatic;
Store<ESM::Cell>* mCells; Store<ESM::Cell>* mCells;