# HG changeset patch # User KUDr # Date 1149413480 0 # Node ID 5fa873b1d23a97c10fe5e454b079ae95923e267d # Parent a09379beffd5e13bc73b34ac770ec3c5a9f34ddd (svn r5095) -CodeChange: {} added around returns diff -r a09379beffd5 -r 5fa873b1d23a aystar.c --- a/aystar.c Sun Jun 04 09:28:33 2006 +0000 +++ b/aystar.c Sun Jun 04 09:31:20 2006 +0000 @@ -149,8 +149,9 @@ // Get the best node from OpenList OpenListNode *current = AyStarMain_OpenList_Pop(aystar); // If empty, drop an error - if (current == NULL) + if (current == NULL) { return AYSTAR_EMPTY_OPENLIST; + } // Check for end node and if found, return that code if (aystar->EndNodeCheck(aystar, current) == AYSTAR_FOUND_END_NODE) { @@ -175,12 +176,13 @@ // Free the node free(current); - if (aystar->max_search_nodes != 0 && Hash_Size(&aystar->ClosedListHash) >= aystar->max_search_nodes) + if (aystar->max_search_nodes != 0 && Hash_Size(&aystar->ClosedListHash) >= aystar->max_search_nodes) { /* We've expanded enough nodes */ return AYSTAR_LIMIT_REACHED; - else + } else { // Return that we are still busy return AYSTAR_STILL_BUSY; + } } /*