From 57656e4c5683a3a6b0d5c55ce97900aa1e03c36c Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Fri, 9 Jan 2026 14:56:50 +1300 Subject: [PATCH] DisposeFunkotronics matching --- src/DETHRACE/common/world.c | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/src/DETHRACE/common/world.c b/src/DETHRACE/common/world.c index 6851ca38..be4c01e8 100644 --- a/src/DETHRACE/common/world.c +++ b/src/DETHRACE/common/world.c @@ -1045,24 +1045,22 @@ void DisposeFunkotronics(int pOwner) { int i; tFunkotronic_spec* the_funk; - if (gFunkotronics_array == NULL) { - return; - } - for (i = 0; i < gFunkotronics_array_size; i++) { - the_funk = &gFunkotronics_array[i]; - PossibleService(); - if (the_funk->owner == pOwner) { - the_funk->owner = -999; - if (the_funk->proximity_array != NULL) { - BrMemFree(the_funk->proximity_array); - } - if (the_funk->texture_animation_type == eTexture_animation_flic) { - BrMemFree(the_funk->texture_animation_data.flic_info.flic_data); - EndFlic(&the_funk->texture_animation_data.flic_info.flic_descriptor); - BrMemFree(the_funk->material->colour_map->pixels); - the_funk->material->colour_map->pixels = NULL; - BrPixelmapFree(the_funk->material->colour_map); - the_funk->material->colour_map = NULL; + if (gFunkotronics_array != NULL) { + for (i = 0, the_funk = gFunkotronics_array; i < gFunkotronics_array_size; i++, the_funk++) { + PossibleService(); + if (the_funk->owner == pOwner) { + the_funk->owner = -999; + if (the_funk->proximity_array != NULL) { + BrMemFree(the_funk->proximity_array); + } + if (the_funk->texture_animation_type == eTexture_animation_flic) { + BrMemFree(the_funk->texture_animation_data.flic_info.flic_data); + EndFlic(&the_funk->texture_animation_data.flic_info.flic_descriptor); + BrMemFree(the_funk->material->colour_map->pixels); + the_funk->material->colour_map->pixels = NULL; + BrPixelmapFree(the_funk->material->colour_map); + the_funk->material->colour_map = NULL; + } } } }