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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user