forked from mirror/openmw-tes3mp
Fix searching the player's actorId
This commit is contained in:
parent
a609dc5674
commit
f2c193ce3d
1 changed files with 4 additions and 0 deletions
|
@ -563,6 +563,10 @@ namespace MWWorld
|
||||||
|
|
||||||
Ptr World::searchPtrViaActorId (int actorId)
|
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);
|
return mWorldScene->searchPtrViaActorId (actorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue