Make spelldata const
This commit is contained in:
parent
722e3870a5
commit
2d259cc9e9
2 changed files with 2 additions and 2 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -217,6 +217,6 @@ struct SpellData {
|
|||
int sStaffCost;
|
||||
};
|
||||
|
||||
extern SpellData spelldata[];
|
||||
extern const SpellData spelldata[];
|
||||
|
||||
} // namespace devilution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue