mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
Core/Maps: Prevent creating maps without a valid Map.dbc entry
Closes #9181
This commit is contained in:
@@ -489,14 +489,14 @@ void ScriptMgr::OnGroupRateCalculation(float& rate, uint32 count, bool isRaid)
|
||||
}
|
||||
|
||||
#define SCR_MAP_BGN(M, V, I, E, C, T) \
|
||||
if (V->GetEntry()->T()) \
|
||||
if (V->GetEntry() && V->GetEntry()->T()) \
|
||||
{ \
|
||||
FOR_SCRIPTS(M, I, E) \
|
||||
{ \
|
||||
MapEntry const* C = I->second->GetEntry(); \
|
||||
if (!C) \
|
||||
continue; \
|
||||
if (entry->MapID == V->GetId()) \
|
||||
if (C->MapID == V->GetId()) \
|
||||
{
|
||||
|
||||
#define SCR_MAP_END \
|
||||
|
||||
Reference in New Issue
Block a user