mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Fix random design ignoring last design.
This commit is contained in:
parent
85d9dea2dd
commit
e8907871af
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ public class RandomDesignGenerator(DesignStorage designs, DesignFileSystem fileS
|
|||
if (localDesigns.Count == 0)
|
||||
return null;
|
||||
|
||||
var idx = _rng.Next(0, localDesigns.Count - 1);
|
||||
Glamourer.Log.Verbose($"[Random Design] Chose design {idx} out of {localDesigns.Count}: {localDesigns[idx].Incognito}.");
|
||||
var idx = _rng.Next(0, localDesigns.Count);
|
||||
Glamourer.Log.Verbose($"[Random Design] Chose design {idx + 1} out of {localDesigns.Count}: {localDesigns[idx].Incognito}.");
|
||||
return localDesigns[idx];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue