Skip to content

Commit

Permalink
Cleaned up mGameThread null checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
forteri76 committed May 13, 2014
1 parent 9bd9674 commit 1057146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/jfedor/frozenbubble/FrozenBubble.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ private void playMusic(boolean startPlaying)
/*
* Ascertain which song to play.
*/
if (mGameView != null)
modNow = mGameView.getThread().getCurrentLevelIndex() % MODlist.length;
if (mGameThread != null)
modNow = mGameThread.getCurrentLevelIndex() % MODlist.length;
else
{
Random rand = new Random();
Expand Down Expand Up @@ -869,7 +869,7 @@ private void restoreGamePrefs() {
* Save critically important game information.
*/
public void saveState() {
if ((mGameView != null) && (numPlayers == 1)) {
if ((mGameThread != null) && (numPlayers == 1)) {
/*
* Allow level editor functionalities.
*/
Expand Down

0 comments on commit 1057146

Please sign in to comment.