Core/PacketIO: Send the expected value in available hotfixes packet - realm address, not arbitrary number (it no longer has any effect for clearing client cache)

Port From (https://github.com/TrinityCore/TrinityCore/commit/2c99678118798279372f17d4bb5f5a88ac95c413)
This commit is contained in:
hondacrx
2020-08-21 20:30:53 -04:00
parent e521e70f76
commit 67bacbb731
7 changed files with 8 additions and 29 deletions
+1 -2
View File
@@ -2075,13 +2075,12 @@ namespace Game
{
var DBVersion = "Unknown world database.";
SQLResult result = DB.World.Query("SELECT db_version, cache_id, hotfix_cache_id FROM version LIMIT 1");
SQLResult result = DB.World.Query("SELECT db_version, cache_id FROM version LIMIT 1");
if (!result.IsEmpty())
{
DBVersion = result.Read<string>(0);
// will be overwrite by config values if different and non-0
WorldConfig.SetValue(WorldCfg.ClientCacheVersion, result.Read<uint>(1));
WorldConfig.SetValue(WorldCfg.HotfixCacheVersion, result.Read<uint>(2));
}
return DBVersion;