forked from mirror/openmw-tes3mp
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)
|
||||
{
|
||||
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())
|
||||
return visitor.mResult;
|
||||
|
|
Loading…
Reference in a new issue