Browse Source

Remove custom move constructor. Fixes serialization of visitation status

Ivan Savenko 1 năm trước cách đây
mục cha
commit
0cf490e2c3
1 tập tin đã thay đổi với 1 bổ sung19 xóa
  1. 1 19
      lib/CPlayerState.cpp

+ 1 - 19
lib/CPlayerState.cpp

@@ -23,25 +23,7 @@ PlayerState::PlayerState()
 	setNodeType(PLAYER);
 	setNodeType(PLAYER);
 }
 }
 
 
-PlayerState::PlayerState(PlayerState && other) noexcept:
-	CBonusSystemNode(std::move(other)),
-	color(other.color),
-	human(other.human),
-	team(other.team),
-	resources(other.resources),
-	cheated(other.cheated),
-	enteredWinningCheatCode(other.enteredWinningCheatCode),
-	enteredLosingCheatCode(other.enteredLosingCheatCode),
-	status(other.status),
-	daysWithoutCastle(other.daysWithoutCastle)
-{
-	std::swap(visitedObjects, other.visitedObjects);
-	std::swap(heroes, other.heroes);
-	std::swap(towns, other.towns);
-	std::swap(dwellings, other.dwellings);
-	std::swap(quests, other.quests);
-	std::swap(battleBonuses, other.battleBonuses);
-}
+PlayerState::PlayerState(PlayerState && other) noexcept = default;
 
 
 PlayerState::~PlayerState() = default;
 PlayerState::~PlayerState() = default;