forked from teamnwah/openmw-tes3coop
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)
|
void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos)
|
||||||
{
|
{
|
||||||
|
mRendering.enableTerrain(true);
|
||||||
Nif::NIFFile::CacheLock cachelock;
|
Nif::NIFFile::CacheLock cachelock;
|
||||||
|
|
||||||
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
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);
|
MWBase::Environment::get().getWorld()->positionToIndex (position.pos[0], position.pos[1], x, y);
|
||||||
|
|
||||||
mRendering.enableTerrain(true);
|
|
||||||
|
|
||||||
changeCell (x, y, position, true);
|
changeCell (x, y, position, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ namespace MWWorld
|
||||||
void loadCell (CellStore *cell, Loading::Listener* loadingListener);
|
void loadCell (CellStore *cell, Loading::Listener* loadingListener);
|
||||||
|
|
||||||
void changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos);
|
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 ();
|
CellStore* getCurrentCell ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue