Fix searching the player's actorId

deque
scrawl 11 years ago
parent a609dc5674
commit f2c193ce3d

@ -563,6 +563,10 @@ namespace MWWorld
Ptr World::searchPtrViaActorId (int actorId)
{
// The player is not registered in any CellStore so must be checked manually
if (actorId == getPlayerPtr().getClass().getCreatureStats(getPlayerPtr()).getActorId())
return getPlayerPtr();
// Now search cells
return mWorldScene->searchPtrViaActorId (actorId);
}

Loading…
Cancel
Save