mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 08:29:56 -05:00
Fixed a bug where the game menu being auto opened was crashing.
This commit is contained in:
parent
6b0a196076
commit
d3192dd373
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ module.exports = class PlayLevelView extends RootView
|
|||
onSessionLoaded: (e) ->
|
||||
# Just the level and session have been loaded by the level loader
|
||||
if e.level.get('type', true) in ['hero', 'hero-ladder', 'hero-coop'] and not _.size e.session.get('heroConfig')?.inventory ? {}
|
||||
@openModalView new GameMenuModal level: e.level, session: e.session
|
||||
@openModalView new GameMenuModal level: e.level, session: e.session, supermodel: @supermodel
|
||||
|
||||
onLoaded: ->
|
||||
_.defer => @onLevelLoaderLoaded()
|
||||
|
|
Loading…
Reference in a new issue