diff --git a/src/odin/mods/mod.rs b/src/odin/mods/mod.rs index eba346ff..11df0f2f 100644 --- a/src/odin/mods/mod.rs +++ b/src/odin/mods/mod.rs @@ -46,7 +46,7 @@ impl ZipExt for ZipArchive { } // Don't overwrite old cfg files - if outpath.extension().unwrap() == "cfg" && outpath.exists() { + if outpath.extension().unwrap_or_default() == "cfg" && outpath.exists() { outpath = outpath.with_extension("cfg.new"); } let mut outfile = File::create(&outpath)?;