Skip to content

Commit

Permalink
Safe guard against saving credits level.
Browse files Browse the repository at this point in the history
  • Loading branch information
tapio committed Nov 30, 2012
1 parent d6a10cd commit 725f44b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function resetLevel(levelName) {
}

function savePlayerState(levelName) {
if (!levelName || levelName == "[credits]") return;
var state = {
hp: pl.hp,
bulletsPerClip: pl.bulletsPerClip,
Expand Down

0 comments on commit 725f44b

Please sign in to comment.