[Fix] <resedit> Can't jump paths to self.

This commit is contained in:
Allanis 2013-06-22 19:39:15 +01:00
parent 0d5c77525b
commit 0bc8a4a6d9

View File

@ -721,6 +721,9 @@ class Space:
Add or remove jumps from a star system.
"""
def __jump_add(self, wgt=None, event=None):
if self.space_sel == self.cur_system: # Can't add to self.
return
if self.space_sel in self.systems.keys() and self.cur_system in self.systems.keys():
self.systems[self.cur_system]["jumps"].append(self.space_sel)
self.systems[self.space_sel]["jumps"].append(self.cur_system)