Browse Source

Possible solve to #2 : bugfix in src/map.c get_rnode_block()

When there were a link, returned e was too big, leading in wrong rstart
argument for the next call.
Yann Weber 5 years ago
parent
commit
6b0583b848
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/map.c

+ 4
- 0
src/map.c View File

@@ -484,6 +484,10 @@ get_rnode_block(int *map, map_node * node, map_rnode * rblock, int rstart)
484 484
 
485 485
 		ints_host_to_network(&rblock[e + rstart], map_rnode_iinfo);
486 486
 	}
487
+	//TODO : modify the function header or copy its body into map_get_rblock
488
+	if(node->links) {
489
+		e--;
490
+	}
487 491
 
488 492
 	return e;
489 493
 }

Loading…
Cancel
Save