mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00: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)
|
||||
{
|
||||
// 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…
Reference in New Issue
Block a user