Skip to content

Game.__init__ tries to assign nonexistent city to player 2 #33

Description

@rcriii42

Happens only occasionally

pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "src/main.py", line 30, in <module>
    W = Controller.World(size)
  File "/home/rcriii/workspace/mPyre/src/Controller.py", line 31, in __init__
    self.G = Game.Game(size)
  File "/home/rcriii/workspace/mPyre/src/Game.py", line 82, in __init__
    self.players[2].assign_city(c2)
  File "/home/rcriii/workspace/mPyre/src/Player.py", line 41, in assign_city
    u.plane.destroy()
AttributeError: 'NoneType' object has no attribute 'destroy'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions