diff options
Diffstat (limited to 'navit/maptool/tile_calc.c')
-rw-r--r-- | navit/maptool/tile_calc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/maptool/tile_calc.c b/navit/maptool/tile_calc.c index 298ea5714..f5eaa7642 100644 --- a/navit/maptool/tile_calc.c +++ b/navit/maptool/tile_calc.c @@ -169,7 +169,7 @@ void tile_bbox(char *tile, int len, struct rect *r, int overlap) { struct coord c; int xo,yo; *r=world_bbox; - while ((*tile) || (len)) { + while ((*tile) && (len)) { //calculate next center point c.x=(r->l.x+r->h.x)/2; c.y=(r->l.y+r->h.y)/2; |