From e7b0b91778d9b85c9dee9112d0336dddb89275b6 Mon Sep 17 00:00:00 2001 From: powerof3 <32599957+powerof3@users.noreply.github.com> Date: Wed, 24 Jul 2024 07:03:34 +0530 Subject: [PATCH] Fix compile error --- src/Fixes/RestoreCantTakeBook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fixes/RestoreCantTakeBook.cpp b/src/Fixes/RestoreCantTakeBook.cpp index c03046e..737fb76 100644 --- a/src/Fixes/RestoreCantTakeBook.cpp +++ b/src/Fixes/RestoreCantTakeBook.cpp @@ -37,7 +37,7 @@ namespace Fixes::RestoreCantTakeBook { static RE::UI_MESSAGE_RESULTS thunk(RE::BookMenu* a_this, RE::UIMessage& a_message) { - if (a_this->book3D && a_this->unk96 == 1) { + if (a_this->bookModel && a_this->bookInitialized) { const auto ref = RE::BookMenu::GetTargetReference(); //is not in inventory const auto data = ref ? static_cast(a_message.data) : nullptr;