Update StarPortraitWidget.cpp
This commit is contained in:
parent
76a00ac5c9
commit
b2f8ac594a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user