--- a/rts/Sim/Path/QTPFS/Node.h +++ b/rts/Sim/Path/QTPFS/Node.h @@ -138,7 +138,12 @@ return neighbours; } - void DeactivateNode() { _xmin = std::numeric_limits::max(); } + void DeactivateNode() { + _xmin = std::numeric_limits::max(); +#ifdef __EMSCRIPTEN__ + NeighbourPointsType{}.swap(neighbours); +#endif + } bool NodeDeactivated() const { return (_xmin == std::numeric_limits::max()); } private: