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

Fixes to allow setting zero as activeForeignSegment #46

Open
wants to merge 1 commit into
base: ptr
Choose a base branch
from

Conversation

madrang
Copy link

@madrang madrang commented May 23, 2021

Replaced two conditionals with a check for a number since zero is a valid value.

https://docs.screeps.com/api/#RawMemory.setActiveForeignSegment
The ID of the memory segment from 0 to 99.

Replaced conditional with a specific check for a number.
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

Successfully merging this pull request may close these issues.

1 participant