From 332f38b7ab12e0e2e187c7205c2179a89580b99c Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Mon, 17 Jul 2023 20:59:28 +0300 Subject: [PATCH] Read SCRL::YNAM/ZNAM --- components/esm4/loadscrl.cpp | 6 ++++++ components/esm4/loadscrl.hpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/components/esm4/loadscrl.cpp b/components/esm4/loadscrl.cpp index 9dde36916e..194edf0868 100644 --- a/components/esm4/loadscrl.cpp +++ b/components/esm4/loadscrl.cpp @@ -58,6 +58,12 @@ void ESM4::Scroll::load(ESM4::Reader& reader) case ESM4::SUB_MODL: reader.getZString(mModel); break; + case ESM4::SUB_YNAM: + reader.getFormId(mPickUpSound); + break; + case ESM4::SUB_ZNAM: + reader.getFormId(mDropSound); + break; // case ESM4::SUB_MODB: reader.get(mBoundRadius); break; case ESM4::SUB_OBND: case ESM4::SUB_CTDA: diff --git a/components/esm4/loadscrl.hpp b/components/esm4/loadscrl.hpp index a7d6b015af..21e5e8ccba 100644 --- a/components/esm4/loadscrl.hpp +++ b/components/esm4/loadscrl.hpp @@ -53,6 +53,9 @@ namespace ESM4 std::string mModel; std::string mText; + FormId mPickUpSound; + FormId mDropSound; + Data mData; void load(ESM4::Reader& reader);