From ca01e07a3ce0fe50605aaf199ec8f780198990e0 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sat, 4 Aug 2007 22:14:45 +0000 Subject: Fixes bug #1765310. Counter needs to be reset at the beginning of each iteration. svn-id: r28451 --- engines/parallaction/dialogue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 101d5955bf..84ecde6e64 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -236,11 +236,12 @@ uint16 DialogueManager::askPassword() { debugC(1, kDebugDialogue, "checkDialoguePassword()"); char password[100]; - uint16 passwordLen = 0; + uint16 passwordLen; while (true) { clear(); + passwordLen = 0; strcpy(password, "......."); Common::Rect r(_answerBalloonW[0], _answerBalloonH[0]); -- cgit v1.2.3