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

Prefab section in chapter 34 gets rstripped causing an out of bounds error #217

Open
jvn145 opened this issue May 22, 2024 · 0 comments
Open

Comments

@jvn145
Copy link

jvn145 commented May 22, 2024

Really enjoying the tutorial so far. I landed on chapter 34 and got stuck on the prefab sections.

My code would panic on L229 i prefab_builder/mod.rs due to an out of bounds error. After some digging around, I noticed that something was rstripping my white spaces at the ends of the RIGHT_FORT prefab in prefab_sections.rs. I don't know if this is my IDE or something else that's causing this. For reference, I'm using RustRover Build #RR-241.15989.180.

After replacing the spaces in RIGHT_FORT with zeroes and updating char_to_map, everything ran just fine and I managed to play the game as expected. I wonder if anyone else has run into this issue?

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

No branches or pull requests

1 participant