Skip to content

Commit 0393b87

Browse files
committed
Merge branch 'master' into over_the_rainbow
2 parents 4b46d95 + 3dcb95e commit 0393b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

game/states/download_list.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ local function downloadReceiveCallback(self, data)
296296
dldata.data[#dldata.data + 1] = data
297297
dldata.bytesWritten = dldata.bytesWritten + #data
298298

299-
if dldata.length then
299+
if dldata and dldata.length then
300300
self.data.progress:setValue(dldata.bytesWritten)
301301
setStatusText(self, L("beatmapSelect:download:downloadingBytesProgress", {
302302
a = dldata.bytesWritten,
@@ -308,7 +308,7 @@ end
308308
local function downloadFinishCallback(self)
309309
local dldata = self.persist.downloadData
310310

311-
-- If dldata is nil, that means it's loaded in responseCallback
311+
-- If dldata is nil, that means it's loaded in responseCallback or not found.
312312
if dldata then
313313
local mapData = table.concat(dldata.data)
314314
-- Save map data and initialize

0 commit comments

Comments
 (0)