1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 11:39:42 +00:00

Fix esmtool dump format

This commit is contained in:
elsid 2023-08-17 11:22:05 +02:00
parent c9f03b4174
commit 0d4833febb
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -147,12 +147,7 @@ namespace EsmTool
std::cout << "\n Record: " << ESM::NAME(reader.hdr().record.typeId).toStringView();
if constexpr (ESM::hasId<T>)
{
if constexpr (std::is_same_v<decltype(value.mId), ESM::FormId>)
std::cout << "\n " << ESM::RefId(value.mId);
else
std::cout << "\n Id: " << value.mId;
}
std::cout << "\n Id: " << value.mId;
if constexpr (ESM4::hasFlags<T>)
std::cout << "\n Record flags: " << recordFlags(value.mFlags);
if constexpr (ESM4::hasParent<T>)