mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 03:39:45 +00:00
[Client] Fix code conflict with OpenMW in OpRemoveSpell correctly
This commit is contained in:
parent
9d6f3fdd09
commit
a54bc364ba
1 changed files with 3 additions and 2 deletions
|
@ -519,7 +519,8 @@ namespace MWScript
|
|||
|
||||
Send an ID_PLAYER_SPELLBOOK packet every time a player loses a spell here
|
||||
*/
|
||||
MWMechanics::Spells &spells = ptr.getClass().getCreatureStats(ptr).getSpells();
|
||||
MWMechanics::CreatureStats& creatureStats = ptr.getClass().getCreatureStats(ptr);
|
||||
MWMechanics::Spells &spells = creatureStats.getSpells();
|
||||
|
||||
if (spells.hasSpell(id))
|
||||
{
|
||||
|
@ -533,7 +534,7 @@ namespace MWScript
|
|||
creatureStats.getSpells().purgeEffect(effect.first.mId);
|
||||
}
|
||||
|
||||
ptr.getClass().getCreatureStats(ptr).getSpells().remove(id);
|
||||
creatureStats.getSpells().remove (id);
|
||||
|
||||
if (ptr == MWMechanics::getPlayer())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue