Skip to content

Fixes to allow setting zero as activeForeignSegment#46

Open
madrang wants to merge 1 commit intoscreeps:ptrfrom
madrang:ptr
Open

Fixes to allow setting zero as activeForeignSegment#46
madrang wants to merge 1 commit intoscreeps:ptrfrom
madrang:ptr

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