Skip to content

Commit 19599a8

Browse files
authored
Fix FF7 remake crash when no mods are selected (#165)
1 parent 21f738b commit 19599a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

games/game_finalfantasy7remake.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def _active_mod_paths(self) -> Iterable[Path]:
4747
yield mods_parent_path / mod
4848

4949
def _active_mod_mappings(self, mod_paths: List[Path]) -> Iterable[mobase.Mapping]:
50+
if not mod_paths:
51+
return
5052
pak_priority_digits = math.floor(math.log10(len(mod_paths))) + 1
5153

5254
for priority, mod_path in enumerate(mod_paths):

0 commit comments

Comments
 (0)