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:
parent
67e32abd4f
commit
e8ef1a2a0c
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue