AlexVinS 9 gadi atpakaļ
vecāks
revīzija
55e27a6334
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      lib/HeroBonus.cpp

+ 3 - 0
lib/HeroBonus.cpp

@@ -712,6 +712,9 @@ CBonusSystemNode::CBonusSystemNode(CBonusSystemNode && other):
 	cachedLast(0)
 	cachedLast(0)
 {
 {
 	//todo: move constructor for bonuslist
 	//todo: move constructor for bonuslist
+	other.bonuses.clear();
+	other.exportedBonuses.clear();
+
 	bonuses.belongsToTree = true;
 	bonuses.belongsToTree = true;
 	exportedBonuses.belongsToTree = true;
 	exportedBonuses.belongsToTree = true;