From 5d9c8c8e27d0b3ddfa5e9d504ac5d54b88750a83 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 29 Jan 2018 15:18:47 -0500 Subject: [PATCH] Quick fix to allow dev work to still happen on npc spells This will allow a bit of overhead while developing NPC spell sets --- zone/mob_ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 09bb54571..b14a09c79 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -2669,7 +2669,7 @@ DBnpcspells_Struct* ZoneDatabase::GetNPCSpells(uint32 iDBSpellsID) { return nullptr; if (!npc_spells_cache) { - npc_spells_maxid = GetMaxNPCSpellsID(); + npc_spells_maxid = GetMaxNPCSpellsID() + 50; // TODO: make this better, shitfix to allow dev work npc_spells_cache = new DBnpcspells_Struct*[npc_spells_maxid+1]; npc_spells_loadtried = new bool[npc_spells_maxid+1]; for (uint32 i=0; i<=npc_spells_maxid; i++) {