Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pea Class doesn't remove Pea after collision #5

Open
pickNatchen opened this issue May 15, 2019 · 0 comments
Open

Pea Class doesn't remove Pea after collision #5

pickNatchen opened this issue May 15, 2019 · 0 comments

Comments

@pickNatchen
Copy link

In the .advance() method of the Pea class, there is a line that is meant to remove the Pea. The line is: gp.getLaneZombies().get(myLane).remove(this);

This should instead be gp.getLanePeas().get(myLane).remove(this);

Currently peas never get removed from the game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant