[Fix] Oohhhh sheeeet! I should be moving the bytes not copying it!

This commit is contained in:
Allanis 2014-03-10 20:17:32 +00:00
parent b3ad2671c0
commit d1dff03a08

View File

@ -556,7 +556,7 @@ void map_jump(void) {
map_path = NULL; map_path = NULL;
} else { } else {
/* Get rid of bottom of the path. */ /* 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); map_path = realloc(map_path, sizeof(StarSystem*) * map_npath);
/* Set the next jump to be the next in path. */ /* Set the next jump to be the next in path. */