Skip to content

Commit aa4a73a

Browse files
committed
Fix game crash when closing mod options menus sometimes
1 parent ebeffd6 commit aa4a73a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gui/options/tabbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ modmanager.gui.OptionsTabBox = ig.GuiElementBase.extend({
345345
hideMenu() {
346346
sc.menu.buttonInteract.removeParallelGroup(this.tabGroup)
347347

348-
for (const content of this.tabContent) {
349-
for (const row of content.rows ?? []) row.hide()
348+
for (const key in this.tabContent) {
349+
for (const row of this.tabContent[key].rows ?? []) row.hide()
350350
}
351351
this.list.deactivate()
352352
this.keyBinder.remove()

0 commit comments

Comments
 (0)