Core/Battlefield: Fixed startup crash when compiled without scripts

(cherry picked from commit 1405760f317cfcfed29aca5ab36633863a2d9dc9)
This commit is contained in:
Shauren authored and Ovahlord committed 2022-10-09 00:46:17 +02:00
1 parent 46738404b5
commit 3aae23803d
1 file changed
+2
@@ -64,6 +64,8 @@ void BattlefieldMgr::InitBattlefield()
uint32 scriptId = sObjectMgr->GetScriptId(fields[1].GetString());
Battlefield* bf = sScriptMgr->CreateBattlefield(scriptId);
if (!bf)
continue;
if (!bf->SetupBattlefield())
{