diff --git a/Assets/Scripts/Data/PickupPup/DogDatabase.cs b/Assets/Scripts/Data/PickupPup/DogDatabase.cs index b8c30952..d30bd975 100644 --- a/Assets/Scripts/Data/PickupPup/DogDatabase.cs +++ b/Assets/Scripts/Data/PickupPup/DogDatabase.cs @@ -163,7 +163,7 @@ public DogDescriptor[] GetInOrderDogList( { do { - if(indexInMasterDogArr < maxMasterIndex) + if(indexInMasterDogArr < maxMasterIndex && indexInMasterDogArr < this.dogs.Length) { dogList[i] = this.dogs[indexInMasterDogArr]; }