removed the workaround for the ContainerStore bug.

This commit is contained in:
scrawl 2012-05-18 22:32:06 +02:00
parent 8a0c859c16
commit 656b08f620

View file

@ -150,21 +150,7 @@ namespace MWGui
// were there any items traded at all? // were there any items traded at all?
MWWorld::ContainerStore& playerBought = mWindowManager.getInventoryWindow()->getBoughtItems(); MWWorld::ContainerStore& playerBought = mWindowManager.getInventoryWindow()->getBoughtItems();
MWWorld::ContainerStore& merchantBought = getBoughtItems(); MWWorld::ContainerStore& merchantBought = getBoughtItems();
if (playerBought.begin() == playerBought.end() && merchantBought.begin() == merchantBought.end())
bool traded=false;
for (MWWorld::ContainerStoreIterator it = playerBought.begin();
it != playerBought.end(); ++it)
{
if (it->getRefData().getCount() > 0)
traded = true;
}
for (MWWorld::ContainerStoreIterator it = merchantBought.begin();
it != merchantBought.end(); ++it)
{
if (it->getRefData().getCount() > 0)
traded = true;
}
if (!traded)
{ {
// user notification // user notification
MWBase::Environment::get().getWindowManager()-> MWBase::Environment::get().getWindowManager()->