From 4b8941677dcd72477f4cfb4b06a5b739963f163a Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 7 Feb 2023 10:40:31 +0100 Subject: [PATCH] Do not write binary data to std::cout by esmtool --- apps/esmtool/record.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/esmtool/record.cpp b/apps/esmtool/record.cpp index 9cc8fb1ea4..bafad2d16b 100644 --- a/apps/esmtool/record.cpp +++ b/apps/esmtool/record.cpp @@ -828,7 +828,7 @@ namespace EsmTool if (mData.mData.mDisposition > 0) std::cout << " Disposition/Journal index: " << mData.mData.mDisposition << std::endl; if (mData.mData.mGender != ESM::DialInfo::NA) - std::cout << " Gender: " << mData.mData.mGender << std::endl; + std::cout << " Gender: " << static_cast(mData.mData.mGender) << std::endl; if (!mData.mSound.empty()) std::cout << " Sound File: " << mData.mSound << std::endl; @@ -894,7 +894,7 @@ namespace EsmTool std::cout << " Height Offset: " << data->mHeightOffset << std::endl; // Lots of missing members. std::cout << " Unknown1: " << data->mUnk1 << std::endl; - std::cout << " Unknown2: " << data->mUnk2 << std::endl; + std::cout << " Unknown2: " << static_cast(data->mUnk2) << std::endl; } mData.unloadData(); std::cout << " Deleted: " << mIsDeleted << std::endl;