Skip to content

Commit b560ba8

Browse files
committed
ref: reuse constructor
1 parent 920d0b2 commit b560ba8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

crates/legacy-zebra/src/thordb.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -509,16 +509,7 @@ pub fn read_game_database(thor: &mut LegacyThor, file_name: &str) -> i32 {
509509
Err(_) => return 0
510510
};
511511
old_database_head = thor.database_head.take();
512-
let prolog_type = PrologType {
513-
creation_century: 0,
514-
creation_year: 0,
515-
creation_month: 0,
516-
creation_day: 0,
517-
game_count: 0,
518-
item_count: 0,
519-
origin_year: 0,
520-
reserved: 0
521-
};
512+
let prolog_type = PrologType::new();
522513

523514
let mut db_head = DatabaseType {
524515
prolog: prolog_type,

0 commit comments

Comments
 (0)