summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2022-01-19 23:16:02 +0300
committerdefanor <defanor@uberspace.net>2022-01-19 23:16:02 +0300
commit3aea9ca26b84d71a9427fa3639f213a3ee832837 (patch)
treedb1e5f3bda4a049e31e24e731ba211e0531bae05
parent76afcefd528c46bfc2a482b5a56aa588e8704a11 (diff)
Fix map name detection
Indexes in the database start from 1.
-rwxr-xr-xdwproxy.py2
1 files changed, 1 insertions, 1 deletions
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"