mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:09:40 +00:00
Fix crash with player->position command
This commit is contained in:
parent
a0d38dfb63
commit
9afdf71af3
2 changed files with 1 additions and 4 deletions
|
@ -203,6 +203,7 @@ namespace MWWorld
|
|||
|
||||
void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos)
|
||||
{
|
||||
mRendering.enableTerrain(true);
|
||||
Nif::NIFFile::CacheLock cachelock;
|
||||
|
||||
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
||||
|
@ -436,8 +437,6 @@ namespace MWWorld
|
|||
|
||||
MWBase::Environment::get().getWorld()->positionToIndex (position.pos[0], position.pos[1], x, y);
|
||||
|
||||
mRendering.enableTerrain(true);
|
||||
|
||||
changeCell (x, y, position, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,8 +71,6 @@ namespace MWWorld
|
|||
void loadCell (CellStore *cell, Loading::Listener* loadingListener);
|
||||
|
||||
void changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos);
|
||||
///< Move from exterior to interior or from interior cell to a different
|
||||
/// interior cell.
|
||||
|
||||
CellStore* getCurrentCell ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue