diff --git a/apps/openmw/mwworld/cellpreloader.cpp b/apps/openmw/mwworld/cellpreloader.cpp index f767c6254..d76e5ddcb 100644 --- a/apps/openmw/mwworld/cellpreloader.cpp +++ b/apps/openmw/mwworld/cellpreloader.cpp @@ -79,6 +79,17 @@ namespace MWWorld /// Preload work to be called from the worker thread. virtual void doWork() { + if (mIsExterior) + { + try + { + mPreloadedObjects.push_back(mTerrain->cacheCell(mX, mY)); + } + catch(std::exception& e) + { + } + } + for (MeshList::const_iterator it = mMeshes.begin(); it != mMeshes.end(); ++it) { try @@ -119,17 +130,6 @@ namespace MWWorld // error will be shown when visiting the cell } } - - if (mIsExterior) - { - try - { - mPreloadedObjects.push_back(mTerrain->cacheCell(mX, mY)); - } - catch(std::exception& e) - { - } - } } private: