Skip to content

Commit

Permalink
hide quest objectives only when both quest and objective have a NULL …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
carxt committed Jan 24, 2025
1 parent 569fd6e commit 397ba5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JG/JohnnyGuitarNVSE.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class hk_QuestObjectiveIsDisplayedCall {
result = pObjective->status & BGSQuestObjective::eQObjStatus_displayed;
auto questObjectiveDisplayStr = pObjective->displayText.CStr();
auto questDisplayStr = pObjective->quest->GetFullName()->name.CStr();
if (!(questObjectiveDisplayStr && questDisplayStr && *questObjectiveDisplayStr && *questDisplayStr))
if (!((questObjectiveDisplayStr && *questObjectiveDisplayStr) || (questDisplayStr && *questDisplayStr)))
{
result = 0;
}
Expand Down

0 comments on commit 397ba5a

Please sign in to comment.