mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Fixed a bug in the competitor code session setting when the player has no code yet.
This commit is contained in:
parent
da866a418c
commit
693fa06afb
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ module.exports = class PlayLevelView extends View
|
|||
if s = @levelLoader.opponentSession
|
||||
spells = s.get('teamSpells')?[s.get('team')]
|
||||
opponentCode = s.get('code')
|
||||
myCode = @session.get('code')
|
||||
myCode = @session.get('code') or {}
|
||||
for spell in spells
|
||||
continue unless c = opponentCode[spell]
|
||||
myCode[spell] = c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue