mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:15:41 +00:00
Load present cell store when requested
This commit is contained in:
parent
1a7b4283e7
commit
8ceb79caf5
1 changed files with 6 additions and 1 deletions
|
@ -231,7 +231,12 @@ namespace MWWorld
|
|||
{
|
||||
auto it = mCells.find(id);
|
||||
if (it != mCells.end())
|
||||
return &it->second;
|
||||
{
|
||||
CellStore& cellStore = it->second;
|
||||
if (forceLoad && cellStore.getState() != CellStore::State_Loaded)
|
||||
cellStore.load();
|
||||
return &cellStore;
|
||||
}
|
||||
|
||||
if (id == draftCellId)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue