don't delete areas from musiclist if the latter is empty

This commit is contained in:
cidoku 2025-02-22 20:13:39 -03:00
parent b0c9f6f149
commit 82e71272fe

View File

@ -621,6 +621,7 @@ class AOServerInfo(QtCore.QThread):
areas[type] = [network[i] for i in range(1, len(network))]
areas_len = len(areas[type])
print '[client]', 'The server has %d areas' % areas_len
if musiclist:
for i in range(areas_len):
areas[4].append(musiclist[0])
del musiclist[0]