mirror of https://github.com/OpenTTD/OpenTTD.git
Fix 9e32c618: network revision was always empty (#9419)
Shadowing the variable you intend to write in tends to do that ;)
This commit is contained in:
parent
a7fabe497c
commit
852e056d6f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue