Skip to content

Commit

Permalink
Remove useless null check
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Sep 23, 2016
1 parent d3a3ae0 commit ad81869
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ai/PathFinder.cpp
Expand Up @@ -207,9 +207,6 @@ bool PathFinder::move(NodeId from, NodeId to, Result & rlist, bool stealth) cons

// Create start node and put it on open list
Node * node = new Node(from, NULL, 0.0f, 0.0f);
if(!node) {
return false;
}

// A* main loop
OpenNodeList open;
Expand Down

0 comments on commit ad81869

Please sign in to comment.