|
|
@ -536,17 +536,8 @@ namespace MWWorld
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mPlayer->getPlayer().getRefData().getHandle()==handle)
|
|
|
|
if (mPlayer->getPlayer().getRefData().getHandle()==handle)
|
|
|
|
return mPlayer->getPlayer();
|
|
|
|
return mPlayer->getPlayer();
|
|
|
|
for (Scene::CellStoreCollection::const_iterator iter (mWorldScene->getActiveCells().begin());
|
|
|
|
|
|
|
|
iter!=mWorldScene->getActiveCells().end(); ++iter)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CellStore* cellstore = *iter;
|
|
|
|
|
|
|
|
Ptr ptr = cellstore->searchViaHandle (handle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!ptr.isEmpty())
|
|
|
|
return mWorldScene->searchPtrViaHandle (handle);
|
|
|
|
return ptr;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return MWWorld::Ptr();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Ptr World::searchPtrViaActorId (int actorId)
|
|
|
|
Ptr World::searchPtrViaActorId (int actorId)
|
|
|
|