fix(resource/streaming): print default when limit is nil

This commit is contained in:
DokaDoka
2021-12-24 09:37:27 +11:00
parent 34bd55e4a6
commit cb0b99e147

View File

@@ -4,7 +4,7 @@ local function hasLoaded(fn, type, request, limit)
Wait(0)
timeout -= 1
if timeout < 1 then
return print(('Unable to load %s after %s ticks (%s)'):format(type, limit, request))
return print(('Unable to load %s after %s ticks (%s)'):format(type, limit or 100, request))
end
end
return request