diff --git a/src/engine/Math/Random.ts b/src/engine/Math/Random.ts index bcc693610..b417f7e0b 100644 --- a/src/engine/Math/Random.ts +++ b/src/engine/Math/Random.ts @@ -205,7 +205,7 @@ export class Random { */ public shuffle(array: Array): Array { const tempArray = array.slice(0); - let swap: T = null; + let swap: T; for (let i = 0; i < tempArray.length - 2; i++) { const randomIndex = this.integer(i, tempArray.length - 1); swap = tempArray[i];