Skip to content

Commit dca5955

Browse files
committed
Fix a bug where a new menu choice would crash the game
1 parent 02877a2 commit dca5955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modloader/modgame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def add_route(self, title, route_hook, condition="True"):
217217
for menu in self.chapter_menus:
218218
hook = self.base.get_menu_hook(menu)
219219
self.hooks.append(hook)
220-
hook2 = hook.addItem(title, None, condition)
220+
hook2 = hook.add_item(title, None, condition)
221221

222222
def call_func(hook):
223223
#TODO: What does rv stand for?

0 commit comments

Comments
 (0)