From 46c805759cefef26eb7c693f9ba835d3fbaa4f60 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Mon, 13 Dec 2010 15:48:09 +0000 Subject: [PATCH] Fix compilation on Linux --- library/PolyVoxCore/include/AStarPathfinder.inl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {