* Remove insert_or_assign dependency.

The `insert_or_assign` method was introduced in C++17.
We try to steer clear of anything C++11 or newer, because
we want to support platforms whose toolchains aren't
up to date and don't implement C++11. :)
This commit is contained in:
iProgramInCpp 2023-12-08 09:02:08 +02:00
parent 23444c2d83
commit 1be6479e57

View file

@ -124,7 +124,7 @@ Node* PathFinder::getNode(int x, int y, int z)
Node* pNode = new_Node(x, y, z);
dword_1CD868++;
m_nodeMap.insert_or_assign(MakeNodeHash(x, y, z), pNode);
m_nodeMap[MakeNodeHash(x, y, z)] = pNode;
return pNode;
}