Skip to content

Commit

Permalink
Fixed crash when pressing "j" while a building is selected
Browse files Browse the repository at this point in the history
Thanks @ MasterofJOKers
  • Loading branch information
totycro committed Apr 19, 2012
1 parent b081d5d commit 1d66526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizons/gui/keylisteners/ingamekeylistener.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def keyPressed(self, evt):
if self.session.selected_instances:
# scroll to first one, we can never guarantee to display all selected units
instance = iter(self.session.selected_instances).next()
self.session.view.center( * instance.position.to_tuple())
self.session.view.center( * instance.position.center().to_tuple())
for instance in self.session.selected_instances:
if hasattr(instance, "path") and instance.owner.is_local_player:
self.session.ingame_gui.minimap.show_unit_path(instance)
Expand Down

0 comments on commit 1d66526

Please sign in to comment.