Avoid some arrays being of predefined size

This makes it easier to change the array size via content
This commit is contained in:
Anders Jenbo 2020-04-06 02:39:48 +02:00
commit cab3ebddf5
4 changed files with 18 additions and 82 deletions

View file

@ -1,7 +1,7 @@
#include "all.h"
/** Data related to each spell ID. */
SpellData spelldata[MAX_SPELLS] = {
SpellData spelldata[] = {
// clang-format off
// sName, sManaCost, sType, sNameText, sSkillText, sBookLvl, sStaffLvl, sTargeted, sTownSpell, sMinInt, sSFX, sMissiles[3], sManaAdj, sMinMana, sStaffMin, sStaffMax, sBookCost, sStaffCost
{ SPL_NULL, 0, 0, NULL, NULL, 0, 0, FALSE, FALSE, 0, 0, { 0, 0, 0 }, 0, 0, 40, 80, 0, 0 },