Skip to content

Commit

Permalink
Clear visitplace cache on global commercial changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
algernon-A committed Jul 5, 2022
1 parent 0b271a8 commit 74413ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Code/Patches/CalculateVisitplaceCount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ internal static int SetVisitModes
{
comVisitModes[i] = value;
}

// Clear visitplace cache.
PopData.instance.visitplaceCache.Clear();
}
}

Expand All @@ -254,6 +257,9 @@ internal static int SetVisitMults
{
comVisitMults[i] = value;
}

// Clear visitplace cache.
PopData.instance.visitplaceCache.Clear();
}
}

Expand Down

0 comments on commit 74413ea

Please sign in to comment.