mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/DataStores: Fixed a crash happening when TaxiNodes.db2 fails to load
Closes #14313
This commit is contained in:
@@ -242,9 +242,12 @@ void DB2Manager::LoadStores(std::string const& dataPath)
|
||||
// Initialize global taxinodes mask
|
||||
// include existed nodes that have at least single not spell base (scripted) path
|
||||
{
|
||||
ASSERT(TaxiMaskSize >= ((sTaxiNodesStore.GetNumRows() - 1) / 8) + 1,
|
||||
"TaxiMaskSize is not large enough to contain all taxi nodes! (current value %d, required %d)",
|
||||
TaxiMaskSize, (((sTaxiNodesStore.GetNumRows() - 1) / 8) + 1));
|
||||
if (sTaxiNodesStore.GetNumRows())
|
||||
{
|
||||
ASSERT(TaxiMaskSize >= ((sTaxiNodesStore.GetNumRows() - 1) / 8) + 1,
|
||||
"TaxiMaskSize is not large enough to contain all taxi nodes! (current value %d, required %d)",
|
||||
TaxiMaskSize, (((sTaxiNodesStore.GetNumRows() - 1) / 8) + 1));
|
||||
}
|
||||
|
||||
std::set<uint32> spellPaths;
|
||||
for (SpellEffectEntry const* sInfo : sSpellEffectStore)
|
||||
|
||||
Reference in New Issue
Block a user