diff --git a/Source/GenStep_CustomScatterThings.cs b/Source/GenStep_CustomScatterThings.cs index f34f4a0..4271b11 100644 --- a/Source/GenStep_CustomScatterThings.cs +++ b/Source/GenStep_CustomScatterThings.cs @@ -87,9 +87,11 @@ public static List CountDividedIntoStacks(int count, IntRange stackSizeRang int num4 = (int)((float)(list[num2] - list[num3]) * Rand.Value); List list2; int index; - (list2 = list)[index = num2] = list2[index] - num4; - int index2; - (list2 = list)[index2 = num3] = list2[index2] + num4; + list2 = list; + index = num2; + list2[index] = list2[index] - num4; + int index2 = num3; + list2[index2] = list2[index2] + num4; } } }