[Client] Fix crash on Linux

This commit is contained in:
Koncord 2017-02-22 16:30:07 +08:00
parent b1460cf010
commit b0ebad8b83

View file

@ -650,7 +650,8 @@ namespace MWWorld
loadRef (ref, deleted, refNumToID); loadRef (ref, deleted, refNumToID);
} }
setLastRefNumIndex(refNumToID.rbegin()->first.mIndex); if(refNumToID.size() != 0)
setLastRefNumIndex(refNumToID.rbegin()->first.mIndex);
updateMergedRefs(); updateMergedRefs();
} }