mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04: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()->getGridX(),
|
||||||
cell->getCell()->getGridY()
|
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.
|
// Actually only VHGT is needed here, but we'll need the rest for rendering anyway.
|
||||||
// Load everything now to reduce IO overhead.
|
// 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;
|
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