From 8dd7c52f8ae3b95265c2ac81fe4c2acc92270030 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 18 Nov 2019 07:37:53 +0800 Subject: [PATCH] Code style --- .../player_manager/character_inventory_manipulation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ryzom/server/src/entities_game_service/player_manager/character_inventory_manipulation.cpp b/code/ryzom/server/src/entities_game_service/player_manager/character_inventory_manipulation.cpp index 9299f6504..9ac8a069f 100644 --- a/code/ryzom/server/src/entities_game_service/player_manager/character_inventory_manipulation.cpp +++ b/code/ryzom/server/src/entities_game_service/player_manager/character_inventory_manipulation.cpp @@ -3017,7 +3017,8 @@ void CCharacter::stopUseItem( bool isRingCatalyser ) { CPlayer * p = PlayerManager.getPlayer(PlayerManager.getPlayerId( getId() )); BOMB_IF(p == NULL,"Failed to find player record for character: "<isTrialPlayer()) { + if (p->isTrialPlayer()) + { PHRASE_UTILITIES::sendDynamicSystemMessage( _EntityRowId, "XP_CATALYSER_NO_MORE_ACTIVE"); _RingXpCatalyserSlot = INVENTORIES::INVALID_INVENTORY_SLOT; // _PropertyDatabase.setProp( "CHARACTER_INFO:RING_XP_CATALYSER:Level", 0 );