diff --git a/library/PolyVoxCore/include/AStarPathfinder.inl b/library/PolyVoxCore/include/AStarPathfinder.inl index 6bc85ec1..e6e1279d 100644 --- a/library/PolyVoxCore/include/AStarPathfinder.inl +++ b/library/PolyVoxCore/include/AStarPathfinder.inl @@ -23,6 +23,8 @@ freely, subject to the following restrictions: #include //For numeric_limits +#include + namespace PolyVox { //////////////////////////////////////////////////////////////////////////////// @@ -168,7 +170,7 @@ namespace PolyVox if((openNodes.empty()) || (openNodes.getFirst() != endNode)) { //In this case we failed to find a valid path. - throw runtime_error("No path found"); + throw std::runtime_error("No path found"); } else {