diff options
Diffstat (limited to 'src/astar.cpp')
-rw-r--r-- | src/astar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/astar.cpp b/src/astar.cpp index 00d3be4b..a1683699 100644 --- a/src/astar.cpp +++ b/src/astar.cpp @@ -297,12 +297,12 @@ PATH_NODE *find_path(int pathfinderID, int s_x, int s_y, int e_x, int e_y) { temp->next = new PATH_NODE( path_bank[pathLocation * 2 - 2], path_bank[pathLocation * 2 - 1]); - if(temp->next==NULL)ok("Error", "Unable to create path node"); + if(temp->next==NULL) throw "Unable to create path node"; temp = temp->next; pathLocation++; } if(temp!=NULL)temp->next = new PATH_NODE(e_x, e_y); - else ok("Error", "Null reference"); + else throw "Null reference"; return ret; } |