1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-23 13:17:45 +00:00

fix: allow player to remove title after being set

- index 0 is None in-game removing the currently equipped title
This commit is contained in:
Pinapelz 2024-01-10 20:36:08 -08:00
parent 90354e82f4
commit 22b4ed3c5a

View file

@ -1183,7 +1183,7 @@ void Player::setTitle( uint16_t titleId )
uint8_t value;
Util::valueToFlagByteIndexValue( titleId, value, index );
if( ( m_titleList[ index ] & value ) == 0 ) // Player doesn't have title - bail
if( ( m_titleList[ index ] & value ) == 0 && titleId != 0 ) // Player doesn't have title and is not "no title" - bail
return;
m_activeTitle = titleId;