Skip to content

Commit

Permalink
Fixing possible null dereference (found by Coverity Scan).
Browse files Browse the repository at this point in the history
  • Loading branch information
marzojr committed Nov 26, 2016
1 parent bb71cb8 commit beafc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemgr/sigame.cc
Expand Up @@ -1249,7 +1249,7 @@ void SI_Game::end_game(bool success) {

bool updated = false;

if (flic->can_play()) updated = flic->play_it(win, time);
if (flic && flic->can_play()) updated = flic->play_it(win, time);

// Need to go to the next subtitle?
if (!speech && showing_subs && cur_sub <= last_sub) {
Expand Down

0 comments on commit beafc1f

Please sign in to comment.