From 9b4a7b6cfcb3baaa7bf6a8e793cbd4cb3b38aefc Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Wed, 6 Mar 2019 22:28:13 +0100 Subject: [PATCH] Removes crazy old bug that never presented itself before This isn't an issue with the current release because destruction of objects and artifact objects is identical. Only became an issue now that the artifact struct and destruction is chaning. --- src/artifact.c | 2 +- src/map.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/artifact.c b/src/artifact.c index b2d8a6c..654f3b7 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -197,7 +197,7 @@ artifact_render(Artifact *a, Camera *cam) Position pos = a->sprite->pos; pos.x += 4; pos.y += 4; - particle_engine_sparkle(pos, (Dimension) { 24, 24 }, C_PURPLE, false); + particle_engine_sparkle(pos, DIM(24, 24), C_PURPLE, false); } void diff --git a/src/map.c b/src/map.c index a89ece3..7f0e247 100644 --- a/src/map.c +++ b/src/map.c @@ -439,7 +439,7 @@ map_destroy(Map *map) artifact_destroy(linkedlist_pop(&map->artifacts)); while (map->objects != NULL) - artifact_destroy(linkedlist_pop(&map->objects)); + object_destroy(linkedlist_pop(&map->objects)); timer_destroy(map->monsterMoveTimer); free(map);