From 0003a32701a3b25ccaf93e10d7f955c49fbe1b87 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 6 Dec 2017 14:04:44 -0800 Subject: [PATCH] Fix AssetServer not detecting missing bakeVersion --- assignment-client/src/assets/AssetServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignment-client/src/assets/AssetServer.cpp b/assignment-client/src/assets/AssetServer.cpp index 6a12984f01..a7a91800d1 100644 --- a/assignment-client/src/assets/AssetServer.cpp +++ b/assignment-client/src/assets/AssetServer.cpp @@ -1485,7 +1485,7 @@ std::pair AssetServer::readMetaFile(AssetUtils::AssetHash hash) if (error.error == QJsonParseError::NoError && doc.isObject()) { auto root = doc.object(); - auto bakeVersion = root[BAKE_VERSION_KEY].toInt(INITIAL_BAKE_VERSION); + auto bakeVersion = root[BAKE_VERSION_KEY].toInt(-1); auto failedLastBake = root[FAILED_LAST_BAKE_KEY]; auto lastBakeErrors = root[LAST_BAKE_ERRORS_KEY];