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

Crop count #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Crop count #27

wants to merge 2 commits into from

Conversation

PhantomRaviolis
Copy link
Collaborator

No description provided.

@bcvery1
Copy link
Owner

bcvery1 commented Sep 24, 2018

Fixes #19

@@ -59,7 +59,7 @@ func NewCrop(name string) *Crop {
// Otherwise it just returns false
func (c *Crop) Revert() bool {
c.stage = c.revertTo
if c.revertTo < 0 {
if c.revertTo == 0 {
Copy link
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