Skip to content

Commit

Permalink
Default bSeen to false
Browse files Browse the repository at this point in the history
  • Loading branch information
summonFox committed Aug 26, 2023
1 parent 7a74640 commit da43754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Plugins/Reveal/Reveal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ BOOL Reveal::HookStealthDetection(CNWSCreature* pObserverCreature, CNWSCreature*
auto detectionVector = pHidingCreature->nwnxGet<int>(detectionKey + "PARTY");
if (detectionVector && *detectionVector)
*bSeen = *detectionVector;
else
*bSeen = false;

*bHeard = true;
return true;
}
Expand All @@ -73,6 +76,8 @@ BOOL Reveal::HookStealthDetection(CNWSCreature* pObserverCreature, CNWSCreature*
auto detectionVector = pHidingCreature->nwnxGet<int>(detectionKey + Utils::ObjectIDToString(pObserverCreature->m_idSelf));
if (detectionVector && *detectionVector)
*bSeen = *detectionVector;
else
*bSeen = false;

*bHeard = true;
return true;
Expand Down

0 comments on commit da43754

Please sign in to comment.