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:
parent
90354e82f4
commit
22b4ed3c5a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue