File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ pub unsafe fn read_game_database(file_name: &str)
505505 according to the specification of the database format).
506506*/
507507
508- pub unsafe fn game_database_already_loaded ( file_name : & str ) -> i32 {
508+ pub fn game_database_already_loaded ( file_name : & str , current_db_ : & Option < Box < DatabaseType > > ) -> i32 {
509509 let mut new_prolog =
510510 PrologType { creation_century : 0 ,
511511 creation_year : 0 ,
@@ -524,7 +524,7 @@ pub unsafe fn game_database_already_loaded(file_name: &str) -> i32 {
524524 return 0
525525 }
526526 drop ( stream) ;
527- let mut current_db_ = & database_head ;
527+ let mut current_db_ = current_db_ ;
528528 while let Some ( current_db) = current_db_ {
529529 if ( * current_db) . prolog . creation_century ==
530530 new_prolog. creation_century &&
You can’t perform that action at this time.
0 commit comments