From de621fee16944bbe66f9d99be596ae1032f12100 Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Sun, 25 Oct 2020 14:53:43 -0700 Subject: [PATCH] Fix erroneous freeing of global combo script (#5483) Fixes #5476 When removing a combo, we free the bonus script in the global map Thanks to @saya9200 --- src/map/pc.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/map/pc.hpp b/src/map/pc.hpp index 8a13caad06b..26be10ef76d 100644 --- a/src/map/pc.hpp +++ b/src/map/pc.hpp @@ -263,11 +263,6 @@ struct s_combos { script_code *bonus; uint32 id; uint32 pos; - - ~s_combos() { - if (this->bonus) - script_free_code(this->bonus); - } }; struct map_session_data {