mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:36:38 +02:00
Fix marketplace upload finishing before inventory item is valid
This commit is contained in:
parent
83a60a541b
commit
8f70865cf7
1 changed files with 3 additions and 2 deletions
|
@ -275,9 +275,10 @@ void MarketplaceItemUploader::doWaitForInventory() {
|
|||
}
|
||||
if (id == _marketplaceID) {
|
||||
auto version = assetObject["version"];
|
||||
if (version.isDouble()) {
|
||||
auto valid = assetObject["valid"];
|
||||
if (version.isDouble() && valid.isBool()) {
|
||||
int versionInt = version.toDouble();
|
||||
if (versionInt >= _itemVersion) {
|
||||
if ((int)version.toDouble() >= _itemVersion && valid.toBool()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue