[Fix] Oohhhh sheeeet! I should be moving the bytes not copying it!
This commit is contained in:
parent
b3ad2671c0
commit
d1dff03a08
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user