Update StarPortraitWidget.cpp

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

View File

@ -42,7 +42,8 @@ void PortraitWidget::renderImpl() {
HumanoidPtr humanoid = nullptr;
if (m_renderHumanoid) {
if (auto player = as<Player>(m_entity))
humanoid = player->humanoid();
if (!player->isPermaDead())
humanoid = player->humanoid();
}
List<Drawable> portrait = humanoid ? humanoid->render(false, false) : m_entity->portrait(m_portraitMode);