Skip to content

Commit

Permalink
Merge pull request #24 from quisquous/enmity_exception
Browse files Browse the repository at this point in the history
Extend try block to cover isValid for enmity
  • Loading branch information
ngld authored Nov 14, 2019
2 parents 4f6a364 + 76573ee commit 81b58ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OverlayPlugin.Core/EventSources/EnmityEventSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public void LoadEnmityConfig()

protected void UpdateEnmity(object state)
{
if (memory == null || !memory.IsValid())
return;

try
{
if (memory == null || !memory.IsValid())
return;

bool targetData = HasSubscriber(EnmityTargetDataEvent);
bool aggroList = HasSubscriber(EnmityAggroListEvent);
if (!targetData && !aggroList)
Expand Down

0 comments on commit 81b58ac

Please sign in to comment.