Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Crop count#27

Open
PhantomRaviolis wants to merge 2 commits intomasterfrom
cropCount
Open

Crop count#27
PhantomRaviolis wants to merge 2 commits intomasterfrom
cropCount

Conversation

@PhantomRaviolis
Copy link
Copy Markdown
Collaborator

No description provided.

@bcvery1
Copy link
Copy Markdown
Owner

bcvery1 commented Sep 24, 2018

Fixes #19

func (c *Crop) Revert() bool {
c.stage = c.revertTo
if c.revertTo < 0 {
if c.revertTo == 0 {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check https://github.com/bcvery1/Deadication/blob/master/util/crops.go#L37 "Apple trees" revert to stage 3, not 0. This line will not work. We actually want to check if c.revertTo > -1 (originally it was <)

@bcvery1 bcvery1 requested a review from bb2and8 September 25, 2018 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants