mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 13:14:17 +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)
|
if (localDesigns.Count == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var idx = _rng.Next(0, localDesigns.Count - 1);
|
var idx = _rng.Next(0, localDesigns.Count);
|
||||||
Glamourer.Log.Verbose($"[Random Design] Chose design {idx} out of {localDesigns.Count}: {localDesigns[idx].Incognito}.");
|
Glamourer.Log.Verbose($"[Random Design] Chose design {idx + 1} out of {localDesigns.Count}: {localDesigns[idx].Incognito}.");
|
||||||
return localDesigns[idx];
|
return localDesigns[idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue