Pārlūkot izejas kodu

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
Vincent Stumpf 4 gadi atpakaļ
vecāks
revīzija
de621fee16
1 mainītis faili ar 0 papildinājumiem un 5 dzēšanām
  1. 0 5
      src/map/pc.hpp

+ 0 - 5
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 {