1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 07:45:39 +00:00

Merge branch 'esm4_init_on_read' into 'master'

Init potentially unread fields for HDPT record

See merge request OpenMW/openmw!4301
This commit is contained in:
psi29a 2024-08-05 18:14:59 +00:00
commit 9f2d8b6405

View file

@ -37,6 +37,9 @@ void ESM4::HeadPart::load(ESM4::Reader& reader)
{
mId = reader.getFormIdFromHeader();
mFlags = reader.hdr().record.flags;
mExtraFlags2 = 0;
mData = 0;
mType = 0;
std::optional<std::uint32_t> type;