From ab709a18e041b683687c5e2178da522522d6d833 Mon Sep 17 00:00:00 2001 From: fernando-cortez Date: Thu, 24 Jul 2025 15:02:52 -0400 Subject: [PATCH 1/2] name generation bounds fix --- Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs b/Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs index 141ba18176..6eb68de73b 100644 --- a/Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs +++ b/Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs @@ -1,4 +1,3 @@ -using System; using UnityEngine; using Random = UnityEngine.Random; @@ -19,8 +18,8 @@ public class NameGenerationData : ScriptableObject public string GenerateName() { - var firstWord = FirstWordList[Random.Range(0, FirstWordList.Length - 1)]; - var secondWord = SecondWordList[Random.Range(0, SecondWordList.Length - 1)]; + var firstWord = FirstWordList[Random.Range(0, FirstWordList.Length)]; + var secondWord = SecondWordList[Random.Range(0, SecondWordList.Length)]; return firstWord + " " + secondWord; } From 0121cb8fa46849ae24be29e4dae5fd5a41019c93 Mon Sep 17 00:00:00 2001 From: fernando-cortez Date: Thu, 24 Jul 2025 15:25:38 -0400 Subject: [PATCH 2/2] changelog addition --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10f2b3465c..34d2dc25d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ Additional documentation and release notes are available at [Multiplayer Documen * Fixed error logged when attempting to despawn an already despawned LoadingProgressTracker NetworkObject (#907) * Fixed error logged when a Melee action was acted on a Breakable object (#908) * Internal standards job fix (#915) +* Fixed last index of names not being used (#922) ## [2.5.0] - 2024-04-18