Restore FindContainerVisitor

openmw-38
scrawl 9 years ago
parent 45a609bc54
commit f9dd549bff

@ -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…
Cancel
Save