1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 21:40:15 +00:00

Fix crash for LAND records without data

This commit is contained in:
scrawl 2015-02-24 17:09:49 +01:00
parent e103262095
commit 24de6ba27e

View File

@ -230,7 +230,7 @@ namespace MWWorld
cell->getCell()->getGridX(),
cell->getCell()->getGridY()
);
if (land) {
if (land && land->mDataTypes&ESM::Land::DATA_VHGT) {
// Actually only VHGT is needed here, but we'll need the rest for rendering anyway.
// Load everything now to reduce IO overhead.
const int flags = ESM::Land::DATA_VCLR|ESM::Land::DATA_VHGT|ESM::Land::DATA_VNML|ESM::Land::DATA_VTEX;