From d1dff03a08dba1075bb7640cb2d487bc787ca994 Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Mon, 10 Mar 2014 20:17:32 +0000 Subject: [PATCH] [Fix] Oohhhh sheeeet! I should be moving the bytes not copying it! --- src/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */