1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 16:57:47 +00:00

Minor refactoring

This commit is contained in:
Mordred 2017-08-13 23:39:04 +02:00
parent 97ae40e93c
commit 092896a047

View file

@ -1374,13 +1374,13 @@ void Core::Entity::Player::onMobDeaggro( Core::Entity::BattleNpcPtr pBNpc )
void Core::Entity::Player::hateListAdd( Core::Entity::BattleNpcPtr pBNpc )
{
if( !m_freeHateSlotQueue.empty() )
{
if( m_freeHateSlotQueue.empty() )
return;
uint8_t hateId = m_freeHateSlotQueue.front();
m_freeHateSlotQueue.pop();
m_actorIdTohateSlotMap[pBNpc->getId()] = hateId;
sendHateList();
}
}
void Core::Entity::Player::hateListRemove( Core::Entity::BattleNpcPtr pBNpc )