1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-16 20:16:34 +00:00

Fix build

This commit is contained in:
Alexei Kotov 2025-08-27 04:22:17 +03:00
parent 49d769cb7e
commit 12b2887e58
2 changed files with 8 additions and 2 deletions

View file

@ -224,7 +224,10 @@ namespace MWGui
ControllerButtons* BookWindow::getControllerButtons()
{
mControllerButtons.mA = mTakeButton->getVisible() ? "#{Interface:Take}" : {};
if (mTakeButton->getVisible())
mControllerButtons.mA = "#{Interface:Take}";
else
mControllerButtons.mA.clear();
return &mControllerButtons;
}

View file

@ -355,7 +355,10 @@ namespace MWGui
ControllerButtons* ContainerWindow::getControllerButtons()
{
mControllerButtons.mR1 = mDisposeCorpseButton->getVisible() ? "#{Interface:DisposeOfCorpse}" : {};
if (mDisposeCorpseButton->getVisible())
mControllerButtons.mR1 = "#{Interface:DisposeOfCorpse}";
else
mControllerButtons.mR1.clear();
return &mControllerButtons;
}