diff --git a/src/map.c b/src/map.c index 6fb3100..6f9eafe 100644 --- a/src/map.c +++ b/src/map.c @@ -556,7 +556,7 @@ void map_jump(void) { map_path = NULL; } else { /* Get rid of bottom of the path. */ - memcpy(&map_path[0], &map_path[1], sizeof(StarSystem*) * map_npath); + memmove(&map_path[0], &map_path[1], sizeof(StarSystem*) * map_npath); map_path = realloc(map_path, sizeof(StarSystem*) * map_npath); /* Set the next jump to be the next in path. */