v0.4.1: made tutorial badge code less error-prone

This commit is contained in:
Evan Debenham 2016-07-10 23:20:01 -04:00 committed by Evan Debenham
parent efa9c3bb73
commit 475d78cd05

View File

@ -815,16 +815,16 @@ public class Badges {
case MAGE: case MAGE:
badge = Badge.TUTORIAL_MAGE; badge = Badge.TUTORIAL_MAGE;
break; break;
case ROGUE: default:
break;
case HUNTRESS:
break; break;
} }
local.add( badge ); if (badge != null) {
if (!global.contains( badge )) { local.add(badge);
global.add( badge ); if (!global.contains(badge)) {
saveNeeded = true; global.add(badge);
saveNeeded = true;
}
} }
} }