Open JustArion opened 3 months ago
In PatternScanResult.cs#L35 the Offset is added to the return value, but the current value is never updated in the struct.
According to the summary
Appends to the existing offset if the offset is valid.
Instead, a new instance is returned with the added offset but doesn't update the existing struct the method is a part of.
The quality of life case is that
somePattern = somePattern.AddOffset(offset);
is more tedious than
somePattern.AddOffset(offset);
In PatternScanResult.cs#L35 the Offset is added to the return value, but the current value is never updated in the struct.
According to the summary
Instead, a new instance is returned with the added offset but doesn't update the existing struct the method is a part of.