Changeset 461:49f6adde49d0


Ignore:
Timestamp:
09/07/13 13:53:20 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
63616436313737393366383762366366376266363931356265646435386665326233313535363237
Message:

Protect against corner case crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r459 r461  
    153153                pygame.draw.lines(self._surface, color, False, pointlist,
    154154                                  line_width)
    155             if index == mouse_poly and mouse_pos:
     155            if index == mouse_poly and mouse_pos and len(polygon) > 0:
    156156                endpoint = self.point_to_pymunk(mouse_pos)
    157157                pygame.draw.line(self._surface, color,
Note: See TracChangeset for help on using the changeset viewer.