Skip to content

Commit 9daed07

Browse files
committed
# Concealment 1.2.1
* Fixes - Fixed off-by-one crash in RevealGrids()
1 parent 99f497e commit 9daed07

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Concealment 1.2.1
2+
* Fixes
3+
- Fixed off-by-one crash in RevealGrids()
4+
15
# Concealment 1.2
26
* Features
37
- Added option to exempt pirate-owned grids

Concealment/ConcealmentPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

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

312312
if (_settingsChanged)
313313
{
314-
for (var i = ConcealedGroups.Count; i >= 0; i--)
314+
for (var i = ConcealedGroups.Count - 1; i >= 0; i--)
315315
{
316316
if (IsExcluded(ConcealedGroups[i]))
317317
revealed += RevealGroup(ConcealedGroups[i]);

0 commit comments

Comments
 (0)