1
0
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:
scrawl 2014-05-15 02:36:30 +02:00
parent a609dc5674
commit f2c193ce3d

View File

@ -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);
}