mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 20:16:34 +00:00
Fix build
This commit is contained in:
parent
49d769cb7e
commit
12b2887e58
2 changed files with 8 additions and 2 deletions
|
@ -224,7 +224,10 @@ namespace MWGui
|
||||||
|
|
||||||
ControllerButtons* BookWindow::getControllerButtons()
|
ControllerButtons* BookWindow::getControllerButtons()
|
||||||
{
|
{
|
||||||
mControllerButtons.mA = mTakeButton->getVisible() ? "#{Interface:Take}" : {};
|
if (mTakeButton->getVisible())
|
||||||
|
mControllerButtons.mA = "#{Interface:Take}";
|
||||||
|
else
|
||||||
|
mControllerButtons.mA.clear();
|
||||||
return &mControllerButtons;
|
return &mControllerButtons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -355,7 +355,10 @@ namespace MWGui
|
||||||
|
|
||||||
ControllerButtons* ContainerWindow::getControllerButtons()
|
ControllerButtons* ContainerWindow::getControllerButtons()
|
||||||
{
|
{
|
||||||
mControllerButtons.mR1 = mDisposeCorpseButton->getVisible() ? "#{Interface:DisposeOfCorpse}" : {};
|
if (mDisposeCorpseButton->getVisible())
|
||||||
|
mControllerButtons.mR1 = "#{Interface:DisposeOfCorpse}";
|
||||||
|
else
|
||||||
|
mControllerButtons.mR1.clear();
|
||||||
return &mControllerButtons;
|
return &mControllerButtons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue