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
This commit is contained in:
Vincent Stumpf 2020-10-25 14:53:43 -07:00 committed by GitHub
parent 99e75b07bc
commit de621fee16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,11 +263,6 @@ struct s_combos {
script_code *bonus; script_code *bonus;
uint32 id; uint32 id;
uint32 pos; uint32 pos;
~s_combos() {
if (this->bonus)
script_free_code(this->bonus);
}
}; };
struct map_session_data { struct map_session_data {