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

Fix crash when direction=left or right #19

Merged
merged 1 commit into from
May 22, 2022

Conversation

Soveu
Copy link
Contributor

@Soveu Soveu commented May 22, 2022

When there are lots of rows on the screen (like 130), rusty-rain will crash because it will try to read color out-of-bounds or get an invalid subslice from clr.

It looks like an off-by-one error - "index is N, but len is N".

This is the workaround I'm using

@cowboy8625
Copy link
Owner

Nice find and fix! Thanks for making rusty-rain better!!!

@cowboy8625 cowboy8625 merged commit 3315b88 into cowboy8625:master May 22, 2022
@Soveu
Copy link
Contributor Author

Soveu commented May 22, 2022

Well, honestly, I was hoping the issue lies somewhere else and this patch won't be used in the end, because it is a workaround :D

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.

None yet

2 participants