From 2f1114fc1eb357954b0cfdf9ae0d8d223b095daf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Aug 2023 14:48:03 +0800 Subject: [PATCH] 1 --- server/gameserver/incubator.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index 1c7c119c..89d26d93 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -569,7 +569,7 @@ void Incubator::Rearrangement() if (team_num_hash.find(hum->team_id) != team_num_hash.end()) { ++team_num_hash[hum->team_id]; } else { - team_num_hash[hum->team_id]; + team_num_hash[hum->team_id] = 1; } hum->sort_id = i; ++i; @@ -614,11 +614,11 @@ void Incubator::Rearrangement() } #ifdef DEBUG { - std::string data = "Rearrangement "; + std::string data = "Rearrangement team_id:" + a8::XValue(team_id).GetString() + " "; for (auto hum : hold_humans_) { - data += a8::XValue(hum->team_id) + ","; + data += a8::XValue(hum->team_id).GetString() + ","; } - a8::XPrintf("%s\n", {data}); + a8::XPrintf("%s !%d %d %d\n", {data, teams2.size(), teams3.size(), teams4.size()}); } #endif }