diff options
author | Patric Stout <truebrain@openttd.org> | 2021-07-08 12:29:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 12:29:16 +0200 |
commit | 852e056d6f47a913ee0e13f1779910e18dbf97b7 (patch) | |
tree | cf82427fab794ef0642c3e5c72a5300aec68ef6b /src/network/core/game_info.cpp | |
parent | a7fabe497cd5b9f3b9e6b813b209d665d808d789 (diff) | |
download | openttd-852e056d6f47a913ee0e13f1779910e18dbf97b7.tar.xz |
Fix 9e32c618: network revision was always empty (#9419)
Shadowing the variable you intend to write in tends to do that ;)
Diffstat (limited to 'src/network/core/game_info.cpp')
-rw-r--r-- | src/network/core/game_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/game_info.cpp b/src/network/core/game_info.cpp index a52de6c18..b4c487fba 100644 --- a/src/network/core/game_info.cpp +++ b/src/network/core/game_info.cpp @@ -43,7 +43,7 @@ std::string_view GetNetworkRevisionString() static std::string network_revision; if (network_revision.empty()) { - std::string network_revision = _openttd_revision; + network_revision = _openttd_revision; if (_openttd_revision_tagged) { /* Tagged; do not mangle further, though ensure it's not too long. */ if (network_revision.size() >= NETWORK_REVISION_LENGTH) network_revision.resize(NETWORK_REVISION_LENGTH - 1); |