aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DataStores/DB2Stores.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/game/DataStores/DB2Stores.cpp b/src/server/game/DataStores/DB2Stores.cpp
index 3efb2297c93..df7496e4d94 100644
--- a/src/server/game/DataStores/DB2Stores.cpp
+++ b/src/server/game/DataStores/DB2Stores.cpp
@@ -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)