Skip to content

Commit

Permalink
mission selection redirect back bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wooki committed Dec 31, 2012
1 parent be988e3 commit 080c329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/missions.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function selection($slug=false) {
$this->session->set_flashdata('error', 'Game does not exist');
redirect('/', 'location');
return;
} else if ($game->state != 'starting' && $game->state != 'mission-selection') {
} else if ($game->state != 'starting' || $game->state != 'mission-selection') {
$this->session->set_flashdata('error', 'Game state has moved');
redirect(Game::get_url($game), 'location');
return;
Expand Down

0 comments on commit 080c329

Please sign in to comment.