Fixed a bug where the game menu being auto opened was crashing.

This commit is contained in:
Scott Erickson 2014-10-29 10:43:05 -07:00
parent 6b0a196076
commit d3192dd373

View file

@ -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()