From 85ab67fff41b8c4811d2a88e992f6c1f7000498a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 7 May 2021 18:43:07 +0200 Subject: [PATCH] [Server] Use consistent order for script functions for Spells Fix a small typo. --- apps/openmw-mp/Script/Functions/Spells.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Spells.hpp b/apps/openmw-mp/Script/Functions/Spells.hpp index a7f72950e..12207e4aa 100644 --- a/apps/openmw-mp/Script/Functions/Spells.hpp +++ b/apps/openmw-mp/Script/Functions/Spells.hpp @@ -73,20 +73,20 @@ public: static unsigned int GetSpellbookChangesAction(unsigned short pid) noexcept; /** - * \brief Get the action type used in a player's latest spells active changes. + * \brief Get the number of indexes in a player's latest spells active changes. * * \param pid The player ID whose spells active changes should be used. - * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE). + * \return The number of indexes for spells active changes. */ - static unsigned int GetSpellsActiveChangesAction(unsigned short pid) noexcept; + static unsigned int GetSpellsActiveChangesSize(unsigned short pid) noexcept; /** - * \brief Get the number of indexes in a player's latest spells active changes. + * \brief Get the action type used in a player's latest spells active changes. * * \param pid The player ID whose spells active changes should be used. - * \return The number of indexes. + * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE). */ - static unsigned int GetSpellsActiveChangesSize(unsigned short pid) noexcept; + static unsigned int GetSpellsActiveChangesAction(unsigned short pid) noexcept; /** * \brief Set the action type in a player's spellbook changes. @@ -117,7 +117,7 @@ public: /** * \brief Add a new active spell to the spells active changes for a player, - * using the temporary effect times stored so far. + * using the temporary effect values stored so far. * * \param pid The player ID whose spells active changes should be used. * \param spellId The spellId of the spell.