Fix old alchemy apparatus still showing in alchemy window after removal

openmw-33
scrawl 10 years ago
parent 29ac97be7a
commit ace8e0175b

@ -134,11 +134,12 @@ namespace MWGui
for (MWMechanics::Alchemy::TToolsIterator iter (mAlchemy.beginTools());
iter!=mAlchemy.endTools() && index<static_cast<int> (mApparatus.size()); ++iter, ++index)
{
mApparatus.at (index)->setItem(*iter);
mApparatus.at (index)->clearUserStrings();
if (!iter->isEmpty())
{
mApparatus.at (index)->setUserString ("ToolTipType", "ItemPtr");
mApparatus.at (index)->setUserData (*iter);
mApparatus.at (index)->setItem(*iter);
}
}

Loading…
Cancel
Save