mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-22 14:43:29 +08:00
Update getUserInventoryContents
There will be a re-loop if description of the item not the last one in descriptions (and quickDescriptionLookup will rewrite everytime)
This commit is contained in:
@@ -441,10 +441,8 @@ SteamCommunity.prototype.getUserInventoryContents = function(userID, appID, cont
|
|||||||
|
|
||||||
for (var i = 0; i < descriptions.length; i++) {
|
for (var i = 0; i < descriptions.length; i++) {
|
||||||
quickDescriptionLookup[key] = descriptions[i];
|
quickDescriptionLookup[key] = descriptions[i];
|
||||||
|
|
||||||
if (descriptions[i].classid == classID && descriptions[i].instanceid == instanceID) {
|
|
||||||
return descriptions[i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return quickDescriptionLookup[key];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user