summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-03-18 00:30:37 -0400
committeryenatch <yenatch@gmail.com>2013-03-18 00:30:37 -0400
commitc749f4bb5b021a45a8ae6c6fabe24361fd3077b0 (patch)
tree03ebb6a45821eb076971426d2aeedc66e3799733 /crystal.py
parent68c2b097458681c1be69a7bfdf65774fc622134d (diff)
Fix unused function parse_map_header_by_id
'Dunno' exception always fired even if parameters were correct original-commit-id: c19dcb996c26111d5ccda8cb783ccbb15348992b
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index b3f29a1..0fe1aa3 100644
--- a/crystal.py
+++ b/crystal.py
@@ -6201,7 +6201,7 @@ def parse_map_header_by_id(*args, **kwargs):
elif len(args) == 1 and type(args[0]) == str:
map_group = int(args[0].split(".")[0])
map_id = int(args[0].split(".")[1])
- else:
+ elif map_group == None and map_id == None:
raise Exception("dunno what to do with input")
offset = map_names[map_group]["offset"]
map_header_offset = offset + ((map_id - 1) * map_header_byte_size)