Skip to content

Commit

Permalink
Fix: NewGRF md5sum could not be converted to JSON, crashing the insta…
Browse files Browse the repository at this point in the history
…nces (#42)
  • Loading branch information
TrueBrain authored Jul 10, 2021
1 parent c52c48f commit 2a919a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master_server/openttd/receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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})
payload["newgrfs"].append({"grfid": grfid, "md5sum": md5sum.hex()})

if game_info_version >= 3:
payload["game_date"], data = read_uint32(data)
Expand Down

0 comments on commit 2a919a1

Please sign in to comment.