diff --git a/Source/UI/GameSettings/UIEscOptionWnd.cpp b/Source/UI/GameSettings/UIEscOptionWnd.cpp index b6ef15b7f..3934acc0a 100644 --- a/Source/UI/GameSettings/UIEscOptionWnd.cpp +++ b/Source/UI/GameSettings/UIEscOptionWnd.cpp @@ -73,17 +73,11 @@ void UIEscOptionWnd::LayoutButtons() { UIEscOptionWnd::UIEscOptionWnd() : UIFrameWnd(0), m_titleHeight(17) { CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); - int escMode; if (mode->isPlayerDead != 0) { - if (!mode->HasResurrectionItem() && !g_session.HasSkillEffect(580)) { - escMode = 1; - } else { - escMode = 2; - } + this->m_mode = !mode->HasResurrectionItem() && !g_session.HasSkillEffect(580) ? 1 : 2; } else { - escMode = 0; + this->m_mode = 0; } - this->m_mode = escMode; } #include "Contents/Party/AdventurerAgencyMgr.h"