mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Remove custom move constructor. Fixes serialization of visitation status
This commit is contained in:
@@ -23,25 +23,7 @@ PlayerState::PlayerState()
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user