git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix debug trajectory
[aversive.git]
/
projects
/
microb2010
/
mainboard
/
strat_avoid.c
diff --git
a/projects/microb2010/mainboard/strat_avoid.c
b/projects/microb2010/mainboard/strat_avoid.c
index
e661ac1
..
87bcf9f
100644
(file)
--- a/
projects/microb2010/mainboard/strat_avoid.c
+++ b/
projects/microb2010/mainboard/strat_avoid.c
@@
-215,7
+215,7
@@
static struct djpoint *get_neigh(struct djpoint *pt,
default:
return NULL;
}
- if (i
< 0 || j < 0 || i
>= WAYPOINTS_NBX || j >= WAYPOINTS_NBY)
+ if (i >= WAYPOINTS_NBX || j >= WAYPOINTS_NBY)
return NULL;
if (is_reachable(i, j) == 0)