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:
parent
e103262095
commit
24de6ba27e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user