mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
changed PlayerPos::getPlayer return type from CellRef to Ptr
This commit is contained in:
parent
e7abbbedda
commit
d4f21fccdd
2 changed files with 4 additions and 8 deletions
|
@ -76,15 +76,11 @@ namespace MWRender
|
|||
setPos(relX, relY, relZ);
|
||||
}
|
||||
|
||||
ESMS::LiveCellRef<ESM::NPC, MWWorld::RefData> *getPlayer()
|
||||
MWWorld::Ptr getPlayer()
|
||||
{
|
||||
return &mPlayer;
|
||||
MWWorld::Ptr ptr (&mPlayer, mCellStore);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const ESMS::LiveCellRef<ESM::NPC, MWWorld::RefData> *getPlayer() const
|
||||
{
|
||||
return &mPlayer;
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -259,7 +259,7 @@ namespace MWWorld
|
|||
// the player is always in an active cell.
|
||||
if (name=="player")
|
||||
{
|
||||
return Ptr (mPlayerPos->getPlayer(), mCurrentCell);
|
||||
return mPlayerPos->getPlayer();
|
||||
}
|
||||
|
||||
// active cells
|
||||
|
|
Loading…
Reference in a new issue