Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Jul 24, 2024
1 parent 311d2f2 commit e7b0b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixes/RestoreCantTakeBook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<RE::BSUIMessageData*>(a_message.data) : nullptr;

Expand Down

0 comments on commit e7b0b91

Please sign in to comment.