colinsheppard/instream — Issue #56: typo in HabitatSpace getNeighborsWithin
Author: SFRailsback
Created: 2011-12-02 22:23:47+00:00
State: open

Change this (being careful to get exactly the right one of 4 similar statements; this is 2nd):

unsigned int hDLTUSCount = [habDownstreamLinksToUS getCount];
for(i = 0; i < hDLTUSCount; i++){
id anotherReach = [habDownstreamLinksToUS atOffset: i];
[anotherReach addDownstreamCellsWithin: fishDistToDSEnd toList: listOfCellsWithinRange];

to this:

unsigned int hDLTUSCount = [habDownstreamLinksToUS getCount];
for(i = 0; i < hDLTUSCount; i++){
id anotherReach = [habDownstreamLinksToUS atOffset: i];
[anotherReach addUpstreamCellsWithin: fishDistToDSEnd toList: listOfCellsWithinRange];
****************