Fix : Fuite de mémoire

This commit is contained in:
attilavs2 2024-07-23 17:57:22 +02:00
parent c0d0c23ef9
commit b5a5ae2a5a

View file

@ -99,6 +99,8 @@ int as_reconstruct_path(int16_t *came_from, int w, int h, int16_t spos,
npc->ypath[npc->path_length-i] = ty;
}
free(came_from);
return 0;
as_recons_fail: