From b17b935c10d5ecc82a7ad2d08903c418049d8dae Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 29 Jul 2023 00:51:44 +1000 Subject: [PATCH] Fix net identity not updating after swapping character --- source/game/StarPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp index 3e6d502..70e733e 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -219,6 +219,8 @@ void Player::diskLoad(Json const& diskStore) { m_codexes = make_shared(diskStore.get("codexes")); m_techs = make_shared(diskStore.get("techs")); m_identity = HumanoidIdentity(diskStore.get("identity")); + m_identityUpdated = true; + setTeam(EntityDamageTeam(diskStore.get("team"))); m_state = State::Idle;