Skip to content

Commit

Permalink
#1619: Modified how the new version cache is generated to account for…
Browse files Browse the repository at this point in the history
… numbers greater than 10 for the build number.
  • Loading branch information
DFortun81 committed Apr 18, 2024
1 parent 2dae116 commit 12704be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Social.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ app.PlayerProgressCacheByGUID = PlayerProgressCacheByGUID;
-- Version Cache
local major,minor,build,versionString,versionUID;
local VersionCache = setmetatable({
["Git"] = 999999,
["[Git]"] = 999999,
}, {
__index = function(t, version)
Expand All @@ -53,7 +54,7 @@ local VersionCache = setmetatable({
major = tonumber(major or "0");
minor = tonumber(minor or "0");
build = tonumber(build or "0");
versionUID = (major * 1000) + (major * 10) + build;
versionUID = (major * 10000) + (minor * 100) + build;
--print("GenerateVersionUniqueID", versionString, major,minor,build, versionUID);
t[version] = versionUID;
return versionUID;
Expand Down

0 comments on commit 12704be

Please sign in to comment.