diff --git a/LIBSCII.py b/LIBSCII.py index 0ae607c..912dba8 100644 --- a/LIBSCII.py +++ b/LIBSCII.py @@ -63,7 +63,7 @@ class Scii: self.collision_npc = npc return 2 except: - if x >= 0 and x < self.get_map_width() and y >= 0 and y < self.get_map_height(): return 0 + if x >= 0 and x < self.get_map_width(map_data) and y >= 0 and y < self.get_map_height(map_data): return 0 else: return 1 return 0 def _default_intext(self):