Skip to content

Commit

Permalink
19412: Fixes bug where dev builds were incorrectly checking CAML vers…
Browse files Browse the repository at this point in the history
…ions (#81)
  • Loading branch information
calebwherry authored Feb 23, 2024
1 parent 8e95a5c commit 008194b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Amalgam/AssetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ std::pair<std::string, bool> AssetManager::ValidateVersionAgainstAmalgam(std::st
uint32_t major = atoi(version_split[0].c_str());
uint32_t minor = atoi(version_split[1].c_str());
uint32_t patch = atoi(version_split[2].c_str());
if(
auto dev_build = std::string(AMALGAM_VERSION_SUFFIX);
if(!dev_build.empty())
; // dev builds don't check versions
else if(
(major > AMALGAM_VERSION_MAJOR) ||
(major == AMALGAM_VERSION_MAJOR && minor > AMALGAM_VERSION_MINOR) ||
(major == AMALGAM_VERSION_MAJOR && minor == AMALGAM_VERSION_MINOR && patch > AMALGAM_VERSION_PATCH))
Expand Down

0 comments on commit 008194b

Please sign in to comment.