mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 03:14:06 +00:00
Restore FindContainerVisitor
This commit is contained in:
parent
45a609bc54
commit
f9dd549bff
1 changed files with 5 additions and 1 deletions
|
@ -721,7 +721,11 @@ namespace MWWorld
|
||||||
for (Scene::CellStoreCollection::const_iterator cellIt = collection.begin(); cellIt != collection.end(); ++cellIt)
|
for (Scene::CellStoreCollection::const_iterator cellIt = collection.begin(); cellIt != collection.end(); ++cellIt)
|
||||||
{
|
{
|
||||||
FindContainerVisitor visitor(ptr);
|
FindContainerVisitor visitor(ptr);
|
||||||
//(*cellIt)->forEachContainer(visitor);
|
(*cellIt)->forEachType<ESM::Container>(visitor);
|
||||||
|
if (visitor.mResult.isEmpty())
|
||||||
|
(*cellIt)->forEachType<ESM::Creature>(visitor);
|
||||||
|
if (visitor.mResult.isEmpty())
|
||||||
|
(*cellIt)->forEachType<ESM::NPC>(visitor);
|
||||||
|
|
||||||
if (!visitor.mResult.isEmpty())
|
if (!visitor.mResult.isEmpty())
|
||||||
return visitor.mResult;
|
return visitor.mResult;
|
||||||
|
|
Loading…
Reference in a new issue