diff --git a/gameview.py b/gameview.py index d123820..5f7f2f8 100644 --- a/gameview.py +++ b/gameview.py @@ -2970,8 +2970,9 @@ class GUI(QtGui.QWidget): if "y_offset" in self.features: # AO 2.9 keyword = "" if "" in self.m_chatmessage[SELF_OFFSET] else "&" # i don't think it's hdf's fault but this is still ridiculous - hor_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[0]) - vert_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[1]) if len(self.m_chatmessage[SELF_OFFSET].split(keyword)) > 1 else 0 + offset = self.m_chatmessage[SELF_OFFSET].split(keyword) + hor_offset = int(offset[0]) if offset[0] else 0 + vert_offset = int(offset[1]) if len(offset) > 1 else 0 else: hor_offset = int(self.m_chatmessage[SELF_OFFSET])