Fix this up

This commit is contained in:
jordan4ibanez 2023-11-28 05:22:11 -05:00
parent 3f87764a94
commit 11e73fa99e

View File

@ -169,8 +169,7 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::load() {
return {false, "No format in B3D JSON! Expected: BB3D"}; return {false, "No format in B3D JSON! Expected: BB3D"};
} }
if (!JSONDataContainer.contains("version") || !JSONDataContainer["version"].is_number_integer() || JSONDataContainer["version"] != 1) { if (!JSONDataContainer.contains("version") || !JSONDataContainer["version"].is_number_integer() || JSONDataContainer["version"] != 1) {
os::Printer::log("Wrong version in B3D JSON! Expected: 1", ELL_WARNING); return {false, "Wrong version in B3D JSON! Expected: 1"};
return false;
} }
//! Remember: This is basically a linked tree. //! Remember: This is basically a linked tree.