From 22b4ed3c5a19fe168f84b90e16125909556494fa Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 10 Jan 2024 20:36:08 -0800 Subject: [PATCH] fix: allow player to remove title after being set - index 0 is None in-game removing the currently equipped title --- src/world/Actor/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index 3bbb74ef..08cac924 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -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;