aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-04 22:14:45 +0000
committerNicola Mettifogo2007-08-04 22:14:45 +0000
commitca01e07a3ce0fe50605aaf199ec8f780198990e0 (patch)
tree886e189170791b82a0b2599ea501785503808107
parent663e78b911a7447c25d24e5b7de820a1c790a759 (diff)
downloadscummvm-rg350-ca01e07a3ce0fe50605aaf199ec8f780198990e0.tar.gz
scummvm-rg350-ca01e07a3ce0fe50605aaf199ec8f780198990e0.tar.bz2
scummvm-rg350-ca01e07a3ce0fe50605aaf199ec8f780198990e0.zip
Fixes bug #1765310. Counter needs to be reset at the beginning of each iteration.
svn-id: r28451
-rw-r--r--engines/parallaction/dialogue.cpp3
1 files changed, 2 insertions, 1 deletions
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]);