1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

[Client] Add check for local player when sending active spell removal

This commit is contained in:
David Cernat 2021-04-16 22:05:54 +02:00
parent 4acf9e289b
commit 6766206a76

View file

@ -43,7 +43,10 @@ namespace MWMechanics
Whenever a player loses an active spell, send an ID_PLAYER_SPELLS_ACTIVE packet to the server with it Whenever a player loses an active spell, send an ID_PLAYER_SPELLS_ACTIVE packet to the server with it
*/ */
if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells())
{
mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first); mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first);
}
/* /*
End of tes3mp addition End of tes3mp addition
*/ */