Skip to content

Commit 2dc1b1b

Browse files
committed
Fix crash sometimes occurring when hitting grouped trigger spikes from the side
... + fixed namespace that was left over from a copypaste.
1 parent 27ed168 commit 2dc1b1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Entities/GroupedTriggerSpikes.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
using Microsoft.Xna.Framework;
1+
using Celeste.Mod.Entities;
2+
using Microsoft.Xna.Framework;
23
using Monocle;
34
using System;
45
using System.Collections.Generic;
56

6-
namespace Celeste.Mod.Entities {
7+
namespace Celeste.Mod.SpringCollab2020.Entities {
78
/// <summary>
89
/// TriggerSpikes that all come out when leaving the group.
910
/// </summary>
@@ -161,7 +162,7 @@ private bool SideSafeBlockCheck(Player player) {
161162

162163
private void OnCollide(Player player) {
163164
GetPlayerCollideIndex(player, out int minIndex, out int maxIndex);
164-
if (maxIndex < 0 || minIndex >= spikePositions.Length) {
165+
if (minIndex < 0 || minIndex >= spikePositions.Length) {
165166
return;
166167
}
167168

0 commit comments

Comments
 (0)