mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Slideshow infinite loop fix
If slideshow only had one item, it would loop trying to find a new slide
This commit is contained in:
parent
f7b35198ec
commit
d6c165f290
@ -270,7 +270,7 @@ namespace Wabbajack
|
||||
var idx = _random.Next(0, SlideShowElements.Count);
|
||||
var element = SlideShowElements[idx];
|
||||
|
||||
if (checkLast)
|
||||
if (checkLast && SlideShowElements.Count > 1)
|
||||
{
|
||||
while (element == _lastSlide && (!element.IsNSFW || (element.IsNSFW && ShowNSFW)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user