Skip to content

Commit

Permalink
Fix erroneous freeing of global combo script (#5483)
Browse files Browse the repository at this point in the history
Fixes #5476
When removing a combo, we free the bonus script in the global map
Thanks to @saya9200
  • Loading branch information
vstumpf committed Oct 25, 2020
1 parent 99e75b0 commit de621fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/map/pc.hpp
Expand Up @@ -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 {
Expand Down

0 comments on commit de621fe

Please sign in to comment.