Properly rollback chat command triggered things

This commit is contained in:
Perttu Ahola 2012-07-27 02:37:04 +03:00
parent 0190f9b077
commit f7dc72f8aa

@ -2627,6 +2627,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
message += (wchar_t)readU16(buf);
}
// If something goes wrong, this player is to blame
RollbackScopeActor rollback_scope(m_rollback,
std::string("player:")+player->getName());
// Get player name of this client
std::wstring name = narrow_to_wide(player->getName());