Fix net identity not updating after swapping character

This commit is contained in:
Kae 2023-07-29 00:51:44 +10:00
parent 5c650d7809
commit b17b935c10

View File

@ -219,6 +219,8 @@ void Player::diskLoad(Json const& diskStore) {
m_codexes = make_shared<PlayerCodexes>(diskStore.get("codexes")); m_codexes = make_shared<PlayerCodexes>(diskStore.get("codexes"));
m_techs = make_shared<PlayerTech>(diskStore.get("techs")); m_techs = make_shared<PlayerTech>(diskStore.get("techs"));
m_identity = HumanoidIdentity(diskStore.get("identity")); m_identity = HumanoidIdentity(diskStore.get("identity"));
m_identityUpdated = true;
setTeam(EntityDamageTeam(diskStore.get("team"))); setTeam(EntityDamageTeam(diskStore.get("team")));
m_state = State::Idle; m_state = State::Idle;