1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 04:39:42 +00:00

Reuse existing player position

This commit is contained in:
elsid 2022-01-23 16:44:46 +01:00
parent bba7beb0c5
commit a9ae263acd
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -511,8 +511,7 @@ namespace MWWorld
if (mCurrentCell == nullptr)
return;
const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr();
mNavigator.updatePlayerPosition(player.getRefData().getPosition().asVec3());
mNavigator.updatePlayerPosition(pos);
if (!mCurrentCell->isExterior())
return;