Make spelldata const

This commit is contained in:
Anders Jenbo 2021-08-22 03:06:19 +02:00
commit 2d259cc9e9
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
namespace devilution {
/** Data related to each spell ID. */
SpellData spelldata[] = {
const 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, STYPE_FIRE, nullptr, nullptr, 0, 0, false, false, 0, SFX_NONE, { MIS_NULL, MIS_NULL, MIS_NULL }, 0, 0, 40, 80, 0, 0 },

View file

@ -217,6 +217,6 @@ struct SpellData {
int sStaffCost;
};
extern SpellData spelldata[];
extern const SpellData spelldata[];
} // namespace devilution