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:
parent
8a0c859c16
commit
656b08f620
1 changed files with 1 additions and 15 deletions
|
@ -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()->
|
||||
|
|
Loading…
Reference in a new issue