1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 08:09:46 +00:00

Add default initialization for ESM4::TeleportDest::flags

This commit is contained in:
elsid 2023-06-04 01:13:04 +02:00
parent 67e32abd4f
commit e8ef1a2a0c
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
2 changed files with 3 additions and 1 deletions

View file

@ -103,6 +103,8 @@ void ESM4::Reference::load(ESM4::Reader& reader)
reader.get(mDoor.destPos);
if (esmVer == ESM::VER_094 || esmVer == ESM::VER_170 || isFONV)
reader.get(mDoor.flags); // not in Obvlivion
else
mDoor.flags = 0;
// std::cout << "REFR dest door: " << formIdToString(mDoor.destDoor) << std::endl;// FIXME
break;
}

View file

@ -60,7 +60,7 @@ namespace ESM4
{
FormId destDoor;
ESM::Position destPos;
std::uint32_t flags; // 0x01 no alarm (only in TES5)
std::uint32_t flags = 0; // 0x01 no alarm (only in TES5)
};
struct RadioStationData