mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:09:39 +00:00
[Server] Return signed int for GetSpellsActiveEffectArg()
This commit is contained in:
parent
dd171420ca
commit
1dccd75238
2 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ unsigned int SpellFunctions::GetSpellsActiveEffectId(unsigned short pid, unsigne
|
|||
return player->spellsActiveChanges.activeSpells.at(spellIndex).params.mEffects.at(effectIndex).mEffectId;
|
||||
}
|
||||
|
||||
unsigned int SpellFunctions::GetSpellsActiveEffectArg(unsigned short pid, unsigned int spellIndex, unsigned int effectIndex) noexcept
|
||||
int SpellFunctions::GetSpellsActiveEffectArg(unsigned short pid, unsigned int spellIndex, unsigned int effectIndex) noexcept
|
||||
{
|
||||
Player* player;
|
||||
GET_PLAYER(pid, player, 0);
|
||||
|
|
|
@ -194,7 +194,7 @@ public:
|
|||
* \param effectIndex The index of the effect.
|
||||
* \return The arg of the effect.
|
||||
*/
|
||||
static unsigned int GetSpellsActiveEffectArg(unsigned short pid, unsigned int spellIndex, unsigned int effectIndex) noexcept;
|
||||
static int GetSpellsActiveEffectArg(unsigned short pid, unsigned int spellIndex, unsigned int effectIndex) noexcept;
|
||||
|
||||
/**
|
||||
* \brief Get the magnitude for an effect index at a spell index in a player's latest spells active changes.
|
||||
|
|
Loading…
Reference in a new issue