diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 02113707..bcd603a3 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2636,10 +2636,10 @@ void Human::SendBattleReport() SendGameOver(); } else { long long room_uuid = room->GetRoomUuid(); - std::string account_id = account_id; + std::string sender_id = account_id; HttpProxy::Instance()->HttpGet ( - [room_uuid, account_id, data] + [room_uuid, sender_id, data] (bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx) { if (!ok) { @@ -2653,7 +2653,7 @@ void Human::SendBattleReport() if (!room) { return; } - Player* hum = room->GetPlayerByAccountId(account_id); + Player* hum = room->GetPlayerByAccountId(sender_id); if (!hum) { return; }