From 2a3108100900842aef0f5758db5ad6caff1634ef Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 May 2020 19:44:54 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 7a4b0dd..4ec129e 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2206,7 +2206,10 @@ void Human::GenBattleReportData(a8::MutableXObject* params) } } }//end if rank_reward_meta - params->SetVal("items", items_str != "|" ? items_str : ""); + if (!items_str.empty() && items_str[items_str.size() - 1] == '|') { + items_str.erase(items_str.begin() + items_str.size() - 1); + } + params->SetVal("items", items_str); } { stats.pass_score = MetaMgr::Instance()->GetKillPointParam1(stats.kills);