Skip to content

Commit

Permalink
Fix some really stupid bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Jun 1, 2024
1 parent 89851b6 commit 6e51b3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/core/src/data_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn format_traced_error(
trace: alox_48::path_to_error::Trace,
) -> color_eyre::Report {
let mut message = format!("Error {error}:");
for context in trace.context.iter().rev() {
for context in trace.context {
write!(message, "\n {}", context).unwrap();
}
color_eyre::Report::msg(message)
Expand Down
2 changes: 2 additions & 0 deletions crates/data/src/rmxp/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ pub struct Item {
pub recover_hp: i32,
// These fields are missing in rmxp data *sometimes*.
// Why? Who knows!
#[marshal(default)]
#[serde(default)]
pub recover_sp_rate: i32,
#[marshal(default)]
#[serde(default)]
pub recover_sp: i32,
pub hit: i32,
Expand Down

0 comments on commit 6e51b3d

Please sign in to comment.