Skip to content

Commit

Permalink
fix string_view issue in ProtocolGame::parseRuleViolationReport (otla…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKnopik authored Nov 24, 2024
1 parent 226a1c7 commit bc60e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ void ProtocolGame::parseRuleViolationReport(NetworkMessage& msg)
uint8_t reportReason = msg.getByte();
auto targetName = msg.getString();
auto comment = msg.getString();
std::string_view translation;
std::string translation;
if (reportType == REPORT_TYPE_NAME) {
translation = msg.getString();
} else if (reportType == REPORT_TYPE_STATEMENT) {
Expand Down

0 comments on commit bc60e5e

Please sign in to comment.