Skip to content

Commit a9d12d4

Browse files
committed
Added some more sanity checks
1 parent 75d0dd6 commit a9d12d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,11 @@ public static void GetAssetListWithCount(int assetCount, Action<LootLockerAssetR
828828
}
829829
LootLockerAPIManager.GetAssetsOriginal((response) =>
830830
{
831+
if (response.statusCode == 200)
832+
{
831833
if (response != null&& response.assets != null && response.assets.Length > 0)
832834
LootLockerAssetRequest.lastId = response.assets.Last()?.id != null ? response.assets.Last().id : 0;
835+
}
833836

834837
onComplete?.Invoke(response);
835838
}, assetCount, null, filter, includeUGC, assetFilters);
@@ -851,8 +854,11 @@ public static void GetAssetNextList(int assetCount, Action<LootLockerAssetRespon
851854

852855
LootLockerAPIManager.GetAssetsOriginal((response) =>
853856
{
857+
if (response.statusCode == 200)
858+
{
854859
if (response != null && response.assets != null && response.assets.Length > 0)
855860
LootLockerAssetRequest.lastId = response.assets.Last()?.id != null ? response.assets.Last().id : 0;
861+
}
856862
onComplete?.Invoke(response);
857863
}, assetCount, LootLockerAssetRequest.lastId, filter, includeUGC, assetFilters);
858864
}

0 commit comments

Comments
 (0)