Skip to content

Commit

Permalink
fix: makes no sense to destroy map elements here
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed May 8, 2024
1 parent 609be46 commit d086162
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sk_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ void sk_map_add_element(sk_darray *es,
sk_map_element e = sk_map_element_create(kind, name, texture_kind, w, l, h);
sk_map_element_move(&e, draw_pos);
if (!sk_darray_push(es, &e)) SK_LOG_ERROR("sk_map_add_element :: unable to add new element");
// sk_map_element_destroy(&e);
}

void sk_map_load(sk_map *m) {
Expand Down

0 comments on commit d086162

Please sign in to comment.