amethyst / amethyst/rustrogueliketutorial

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

オープン
#217 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
970
フォーク
166
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。