mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
don't do a half finished cell change, when trying to switch to an interior cell that does not exist
This commit is contained in:
parent
fdfddc8be7
commit
6b74fec8ed
@ -251,6 +251,9 @@ namespace MWWorld
|
||||
void Scene::changeToInteriorCell (const std::string& cellName, const ESM::Position& position)
|
||||
{
|
||||
std::cout << "Changing to interior\n";
|
||||
|
||||
Ptr::CellStore *cell = mWorld->getInterior(cellName);
|
||||
|
||||
// remove active
|
||||
CellStoreCollection::iterator active = mActiveCells.begin();
|
||||
|
||||
@ -261,11 +264,9 @@ namespace MWWorld
|
||||
|
||||
// Load cell.
|
||||
std::cout << "cellName:" << cellName << std::endl;
|
||||
Ptr::CellStore *cell = mWorld->getInterior(cellName);
|
||||
|
||||
loadCell (cell);
|
||||
|
||||
|
||||
// adjust player
|
||||
mCurrentCell = cell;
|
||||
playerCellChange (cell, position);
|
||||
|
Loading…
x
Reference in New Issue
Block a user