From c19dcb996c26111d5ccda8cb783ccbb15348992b Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 18 Mar 2013 00:30:37 -0400 Subject: [PATCH] Fix unused function parse_map_header_by_id 'Dunno' exception always fired even if parameters were correct --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index b3f29a12f..0fe1aa30c 100644 --- a/extras/crystal.py +++ b/extras/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)