From 3aea9ca26b84d71a9427fa3639f213a3ee832837 Mon Sep 17 00:00:00 2001 From: defanor Date: Wed, 19 Jan 2022 23:16:02 +0300 Subject: Fix map name detection Indexes in the database start from 1. --- dwproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwproxy.py b/dwproxy.py index f7943a0..e4205cc 100755 --- a/dwproxy.py +++ b/dwproxy.py @@ -41,7 +41,7 @@ exits = dict() def map_name(map_id): if map_id < len(map_names): - return map_names[map_id] + return map_names[map_id - 1] else: return "Unknown" -- cgit v1.2.3