Skip to content

Commit

Permalink
Fix for coverity #29370
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 14, 2015
1 parent 3285879 commit 8d724d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/worldmap/worldmap.cpp
Expand Up @@ -481,6 +481,10 @@ WorldMap::finished_level(Level* gamelevel)
// TODO use Level* parameter here?
LevelTile* level = at_level();

if(level == NULL) {
return;
}

bool old_level_state = level->solved;
level->solved = true;
level->sprite->set_action("solved");
Expand Down

0 comments on commit 8d724d1

Please sign in to comment.