diff options
Diffstat (limited to 'src/gui/models/magicschoolmodel.h')
-rw-r--r-- | src/gui/models/magicschoolmodel.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gui/models/magicschoolmodel.h b/src/gui/models/magicschoolmodel.h index 7237b5eec..05b71b2c8 100644 --- a/src/gui/models/magicschoolmodel.h +++ b/src/gui/models/magicschoolmodel.h @@ -1,11 +1,11 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2009 The Mana World Development Team * Copyright (C) 2009-2010 Andrei Karas * Copyright (C) 2011-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +30,9 @@ #include "localconsts.h" -const char *MAGIC_SCHOOL_TEXT[6] = +#define NUM_ELEMENTS(a) sizeof(a) / sizeof(a[0]) + +const char *MAGIC_SCHOOL_TEXT[] = { // TRANSLATORS: magic school N_("General Magic"), @@ -43,7 +45,9 @@ const char *MAGIC_SCHOOL_TEXT[6] = // TRANSLATORS: magic school N_("Nature Magic"), // TRANSLATORS: magic school - N_("Astral Magic") + N_("Astral Magic"), + // TRANSLATORS: magic school + N_("Dark Magic"), }; class MagicSchoolModel final : public ListModel @@ -57,7 +61,7 @@ class MagicSchoolModel final : public ListModel int getNumberOfElements() override final { - return 6; + return NUM_ELEMENTS(MAGIC_SCHOOL_TEXT); } std::string getElementAt(int i) override final |