diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-05-17 23:31:47 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-05-21 20:02:34 +0200 |
commit | 43cd892e0c2c012355d7eb6d47cfa4ad4b7e68eb (patch) | |
tree | 589c8791baba745a7dfc3a33b19a28c8b0046ea8 /src/network/network_gamelist.cpp | |
parent | f2b40f40aa7cbccaed20ec52b41d4704a45d8db1 (diff) | |
download | openttd-43cd892e0c2c012355d7eb6d47cfa4ad4b7e68eb.tar.xz |
Codechange: Replace custom linked list for GRF texts with STL vectors and strings.
Diffstat (limited to 'src/network/network_gamelist.cpp')
-rw-r--r-- | src/network/network_gamelist.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/network/network_gamelist.cpp b/src/network/network_gamelist.cpp index ff744e875..dfe07bdbb 100644 --- a/src/network/network_gamelist.cpp +++ b/src/network/network_gamelist.cpp @@ -175,21 +175,15 @@ void NetworkAfterNewGRFScan() /* Don't know the GRF, so mark game incompatible and the (possibly) * already resolved name for this GRF (another server has sent the * name of the GRF already. */ - c->name->Release(); c->name = FindUnknownGRFName(c->ident.grfid, c->ident.md5sum, true); - c->name->AddRef(); c->status = GCS_NOT_FOUND; /* If we miss a file, we're obviously incompatible. */ item->info.compatible = false; } else { c->filename = f->filename; - c->name->Release(); c->name = f->name; - c->name->AddRef(); - c->info->Release(); c->info = f->info; - c->info->AddRef(); c->status = GCS_UNKNOWN; } } |