Skip to content

Commit

Permalink
fix: crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Jun 8, 2022
1 parent 896a1f1 commit e5cc47e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/client/Services/Generic/ActorValueService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ void ActorValueService::RunDeathStateUpdates() noexcept
{
const auto& formIdComponent = view.get<FormIdComponent>(entity);
Actor* const pActor = Cast<Actor>(TESForm::GetById(formIdComponent.Id));
if (!pActor)
continue;

auto& localComponent = view.get<LocalComponent>(entity);

bool isDead = pActor->IsDead();
Expand Down

0 comments on commit e5cc47e

Please sign in to comment.