From 2af290c60e7100c5b5ef6ab350b951d22f6ae0e2 Mon Sep 17 00:00:00 2001 From: Anselme Date: Thu, 10 Mar 2016 13:07:06 +0100 Subject: [PATCH] fixed clue not working --- app/fourasmodule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/fourasmodule.cpp b/app/fourasmodule.cpp index 9acb746..dfa1679 100644 --- a/app/fourasmodule.cpp +++ b/app/fourasmodule.cpp @@ -50,13 +50,14 @@ bool FourasModule::messageHandler(Message msg) if(current != -1) { QString str = riddles->getAnswer(current); - answer = "Indice : "; + QString answerStr = "Indice : "; bool first = true; for(QChar c : str) { - answer.append(first ? QString(c) : QString(" _")); + answerStr.append(first ? QString(c) : QString(" _")); first = false; } + answer = say(answerStr); return true; } }