aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Main.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 31bd580..73f733c 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -224,7 +224,7 @@ class Main {
var first:Null<T> = null;
if (player.isListEmpty()) first = items.shift();
items.reverse();
- if (player.isListEmpty()) items.unshift(first);
+ if (first != null) items.unshift(first);
}
function addVideoArray(links:Array<String>, atEnd:Bool, isTemp:Bool):Void {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage