fix a return type

This commit is contained in:
Jonathan Gray 2013-04-21 16:19:19 +10:00
parent ce9aaa8951
commit d83a25cc1e

View file

@ -750,7 +750,7 @@ public:
////////////////////////////////////////////////////////////////////////////////////
// Connect Node Without Allocating An Edge Object (A->B) if reflexive, also (B->A)
////////////////////////////////////////////////////////////////////////////////////
void connect_node(int nodeA, int nodeB, bool reflexive=true)
int connect_node(int nodeA, int nodeB, bool reflexive=true)
{
if (nodeA==nodeB || !nodeA || !nodeB || !mNodes.is_used(nodeA) || !mNodes.is_used(nodeB))
{