From 3b5e98b045375ed8db55341d7ba707229b688317 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 9 Feb 2021 13:06:05 -0500 Subject: [PATCH] Core/DataStores: Update correct version check of the loaded DB2 files. Port From (https://github.com/TrinityCore/TrinityCore/commit/7c58a13cc95f5c114396c84e3ba5e37cb3c4d04a) --- Source/Game/DataStorage/CliDB.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Game/DataStorage/CliDB.cs b/Source/Game/DataStorage/CliDB.cs index e9093f8cd..ada86e2c2 100644 --- a/Source/Game/DataStorage/CliDB.cs +++ b/Source/Game/DataStorage/CliDB.cs @@ -362,13 +362,13 @@ namespace Game.DataStorage } // Check loaded DB2 files proper version - if (!AreaTableStorage.ContainsKey(10521) || // last area added in 8.0.1 (28153) - !CharTitlesStorage.ContainsKey(649) || // last char title added in 8.0.1 (28153) - !GemPropertiesStorage.ContainsKey(3746) || // last gem property added in 8.0.1 (28153) - !ItemStorage.ContainsKey(168279) || // last item added in 8.0.1 (28153) - !ItemExtendedCostStorage.ContainsKey(6545) || // last item extended cost added in 8.0.1 (28153) - !MapStorage.ContainsKey(2178) || // last map added in 8.0.1 (28153) - !SpellNameStorage.ContainsKey(296952)) // last spell added in 8.0.1 (28153) + if (!CliDB.AreaTableStorage.ContainsKey(13574) || // last area added in 9.0.2 (37176) + !CliDB.CharTitlesStorage.ContainsKey(694) || // last char title added in 9.0.2 (37176) + !CliDB.GemPropertiesStorage.ContainsKey(3825) || // last gem property added in 9.0.2 (37176) + !CliDB.ItemStorage.ContainsKey(184869) || // last item added in 9.0.2 (37176) + !CliDB.ItemExtendedCostStorage.ContainsKey(7048) || // last item extended cost added in 9.0.2 (37176) + !CliDB.MapStorage.ContainsKey(2453) || // last map added in 9.0.2 (37176) + !CliDB.SpellNameStorage.ContainsKey(349043)) // last spell added in 9.0.2 (37176) { Log.outError(LogFilter.Misc, "You have _outdated_ DB2 files. Please extract correct versions from current using client."); Global.WorldMgr.ShutdownServ(10, ShutdownMask.Force, ShutdownExitCode.Error);