mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
[Server] Return signed int for GetSpellsActiveEffectArg()
This commit is contained in:
parent
dd171420ca
commit
1dccd75238
@ -170,7 +170,7 @@ unsigned int SpellFunctions::GetSpellsActiveEffectId(unsigned short pid, unsigne
|
|||||||
return player->spellsActiveChanges.activeSpells.at(spellIndex).params.mEffects.at(effectIndex).mEffectId;
|
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;
|
Player* player;
|
||||||
GET_PLAYER(pid, player, 0);
|
GET_PLAYER(pid, player, 0);
|
||||||
|
@ -194,7 +194,7 @@ public:
|
|||||||
* \param effectIndex The index of the effect.
|
* \param effectIndex The index of the effect.
|
||||||
* \return The arg 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.
|
* \brief Get the magnitude for an effect index at a spell index in a player's latest spells active changes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user