mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Fix searching the player's actorId
This commit is contained in:
parent
a609dc5674
commit
f2c193ce3d
@ -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…
x
Reference in New Issue
Block a user