fixed clue not working

This commit is contained in:
Anselme 2016-03-10 13:07:06 +01:00
parent 2f4cae006c
commit 2af290c60e

View File

@ -50,13 +50,14 @@ bool FourasModule::messageHandler(Message msg)
if(current != -1) if(current != -1)
{ {
QString str = riddles->getAnswer(current); QString str = riddles->getAnswer(current);
answer = "Indice : "; QString answerStr = "Indice : ";
bool first = true; bool first = true;
for(QChar c : str) for(QChar c : str)
{ {
answer.append(first ? QString(c) : QString(" _")); answerStr.append(first ? QString(c) : QString(" _"));
first = false; first = false;
} }
answer = say(answerStr);
return true; return true;
} }
} }