1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

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?
MWWorld::ContainerStore& playerBought = mWindowManager.getInventoryWindow()->getBoughtItems();
MWWorld::ContainerStore& merchantBought = getBoughtItems();
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)
if (playerBought.begin() == playerBought.end() && merchantBought.begin() == merchantBought.end())
{
// user notification
MWBase::Environment::get().getWindowManager()->