Skip to content

Commit

Permalink
# Concealment 1.2.1
Browse files Browse the repository at this point in the history
* Fixes
    - Fixed off-by-one crash in RevealGrids()
  • Loading branch information
Jimmacle committed Jul 26, 2017
1 parent 99f497e commit 9daed07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Concealment 1.2.1
* Fixes
- Fixed off-by-one crash in RevealGrids()

# Concealment 1.2
* Features
- Added option to exempt pirate-owned grids
Expand Down
4 changes: 2 additions & 2 deletions Concealment/ConcealmentPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

namespace Concealment
{
[Plugin("Concealment", "1.2", "17f44521-b77a-4e85-810f-ee73311cf75d")]
[Plugin("Concealment", "1.2.1", "17f44521-b77a-4e85-810f-ee73311cf75d")]
public sealed class ConcealmentPlugin : TorchPluginBase, IWpfPlugin
{
public Persistent<Settings> Settings { get; private set; }
Expand Down Expand Up @@ -311,7 +311,7 @@ public int RevealGrids(double distanceFromPlayers)

if (_settingsChanged)
{
for (var i = ConcealedGroups.Count; i >= 0; i--)
for (var i = ConcealedGroups.Count - 1; i >= 0; i--)
{
if (IsExcluded(ConcealedGroups[i]))
revealed += RevealGroup(ConcealedGroups[i]);
Expand Down

0 comments on commit 9daed07

Please sign in to comment.