Permalink
Browse files

Safe guard against saving credits level.

  • Loading branch information...
1 parent d6a10cd commit 725f44be84df71e589096c965af51ca69468501e @tapio committed Nov 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 js/main.js
View
@@ -158,6 +158,7 @@ function resetLevel(levelName) {
}
function savePlayerState(levelName) {
+ if (!levelName || levelName == "[credits]") return;
var state = {
hp: pl.hp,
bulletsPerClip: pl.bulletsPerClip,

0 comments on commit 725f44b

Please sign in to comment.