Skip to content

Commit

Permalink
Fix the items were not properly read
Browse files Browse the repository at this point in the history
  • Loading branch information
storycraft committed Jan 11, 2021
1 parent 36f7336 commit 7770550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scn-script-extractor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn main() {

PsbValue::List(text_list) => {
let list = read_items(3, text_list);

let mut character: Option<u64> = None;
let mut character_display: Option<u64> = None;
let text: u64;
Expand Down Expand Up @@ -232,7 +232,7 @@ fn read_items(count: usize, list: &PsbList) -> Vec<&PsbValue> {
match child.unwrap() {

PsbValue::List(child_list) => {
read_items(count - vec.len(), child_list);
vec.append(&mut read_items(count - vec.len(), child_list));
}

child => {
Expand Down

0 comments on commit 7770550

Please sign in to comment.