mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:06:44 +00:00
small addition
This commit is contained in:
parent
b2b9254718
commit
59560e84eb
1 changed files with 8 additions and 2 deletions
|
@ -146,6 +146,8 @@ namespace MWGui
|
||||||
mApparatus.at (index)->setImageTexture (getIconPath (*iter));
|
mApparatus.at (index)->setImageTexture (getIconPath (*iter));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AlchemyWindow::onIngredientSelected(MyGUI::Widget* _sender)
|
void AlchemyWindow::onIngredientSelected(MyGUI::Widget* _sender)
|
||||||
|
@ -185,8 +187,12 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
MyGUI::ImageBox* ingredient = mIngredients[i];
|
MyGUI::ImageBox* ingredient = mIngredients[i];
|
||||||
|
|
||||||
MWWorld::Ptr item = *it;
|
MWWorld::Ptr item;
|
||||||
|
if (it != mAlchemy.endIngredients ())
|
||||||
|
{
|
||||||
|
item = *it;
|
||||||
++it;
|
++it;
|
||||||
|
}
|
||||||
|
|
||||||
if (ingredient->getChildCount())
|
if (ingredient->getChildCount())
|
||||||
MyGUI::Gui::getInstance().destroyWidget(ingredient->getChildAt(0));
|
MyGUI::Gui::getInstance().destroyWidget(ingredient->getChildAt(0));
|
||||||
|
|
Loading…
Reference in a new issue