Load present cell store when requested

revert-6246b479
elsid 1 year ago
parent 1a7b4283e7
commit 8ceb79caf5
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -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…
Cancel
Save