Skip to content

Commit

Permalink
fix: player removed event
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed May 16, 2022
1 parent 7fde080 commit 81069ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/client/Services/Generic/CharacterService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ void CharacterService::RequestServerAssignment(const entt::entity aEntity) const

void CharacterService::CancelServerAssignment(const entt::entity aEntity, const uint32_t aFormId) const noexcept
{
m_world.remove<PlayerComponent>(aEntity);

if (m_world.all_of<RemoteComponent>(aEntity))
{
CharacterService::DeleteTempActor(aFormId);
Expand Down Expand Up @@ -1341,8 +1343,6 @@ void CharacterService::CancelServerAssignment(const entt::entity aEntity, const

m_world.remove<LocalAnimationComponent, LocalComponent>(aEntity);
}

m_world.remove<PlayerComponent>(aEntity);
}

Actor* CharacterService::CreateCharacterForEntity(entt::entity aEntity) const noexcept
Expand Down

0 comments on commit 81069ca

Please sign in to comment.