Update StarPortraitWidget.cpp

This commit is contained in:
Kae 2024-08-20 19:58:20 +10:00
parent 76a00ac5c9
commit b2f8ac594a

View File

@ -42,6 +42,7 @@ void PortraitWidget::renderImpl() {
HumanoidPtr humanoid = nullptr;
if (m_renderHumanoid) {
if (auto player = as<Player>(m_entity))
if (!player->isPermaDead())
humanoid = player->humanoid();
}