1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 03:07:45 +00:00

Minor refactoring

This commit is contained in:
Mordred 2017-08-13 23:39:04 +02:00
parent 83855ff027
commit df98c09179

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 )