From b3287f726eff4362441d5acfb603fb262325b061 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 18 Jul 2021 19:09:26 +0200 Subject: [PATCH] Fix d778f557: NewGRF entries were not following new specs (#49) "name" field should always be set for NewGRFs, even if it is not known. --- master_server/openttd/receive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master_server/openttd/receive.py b/master_server/openttd/receive.py index 12e471b..6828b78 100644 --- a/master_server/openttd/receive.py +++ b/master_server/openttd/receive.py @@ -133,7 +133,7 @@ def receive_PACKET_UDP_SERVER_RESPONSE(source, data): for _ in range(newgrf_count): grfid, data = read_uint32(data) md5sum, data = read_bytes(data, 16) - payload["newgrfs"].append({"grfid": grfid, "md5sum": md5sum.hex()}) + payload["newgrfs"].append({"grfid": grfid, "md5sum": md5sum.hex(), "name": None}) if game_info_version >= 3: payload["game_date"], data = read_uint32(data)