This commit is contained in:
ian%hixie.ch 2003-09-24 21:28:27 +00:00
Родитель 93062ca7e5
Коммит 3c448272a7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -293,7 +293,7 @@ sub quizQuestion { # called from quizStart or delayed from quizAnswer
$self->{'remainingQuestions'}->{$event->{'channel'}}--;
my $category = $self->{'questions'}->[$self->{'currentQuestion'}->{$event->{'channel'}}]->{'category'};
my $try = 0;
my $$questionCount = scalar keys %{$self->{'questions'}};
my $questionCount = scalar keys %{$self->{'questions'}};
while ($self->{'questions'}->[$self->{'currentQuestion'}->{$event->{'channel'}}]->{'category'} eq $category
and $try++ < $questionCount) {
$self->{'currentQuestion'}->{$event->{'channel'}} = $self->pickQuestion();