1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +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;