Fix marketplace upload finishing before inventory item is valid

This commit is contained in:
Ryan Huffman 2018-12-27 21:02:56 -08:00
parent 83a60a541b
commit 8f70865cf7

View file

@ -275,9 +275,10 @@ void MarketplaceItemUploader::doWaitForInventory() {
} }
if (id == _marketplaceID) { if (id == _marketplaceID) {
auto version = assetObject["version"]; auto version = assetObject["version"];
if (version.isDouble()) { auto valid = assetObject["valid"];
if (version.isDouble() && valid.isBool()) {
int versionInt = version.toDouble(); int versionInt = version.toDouble();
if (versionInt >= _itemVersion) { if ((int)version.toDouble() >= _itemVersion && valid.toBool()) {
return true; return true;
} }
} }