summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes.txt1
-rw-r--r--src/q_rand.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/changes.txt b/changes.txt
index c2709606..f0c010bd 100644
--- a/changes.txt
+++ b/changes.txt
@@ -5,6 +5,7 @@ T.o.M.E 2.3.6
- Avoid generating up staircases in selected dungeons.
- Mimicry cloaks of Abomination now aggravate properly.
- Properly handle item set effects with certain traps.
+- Fix crash bug during character dumps.
diff --git a/src/q_rand.c b/src/q_rand.c
index 73e5a5f3..c952b861 100644
--- a/src/q_rand.c
+++ b/src/q_rand.c
@@ -418,9 +418,9 @@ bool quest_random_dump_hook(char *fmt)
fprintf(hook_file, "\n You haven't completed a single princess quest.");
if (lscnt > 10)
- fprintf(hook_file, "\n You have completed %d lost sword quests.", pcnt);
+ fprintf(hook_file, "\n You have completed %d lost sword quests.", lscnt);
else if (lscnt > 1)
- fprintf(hook_file, "\n You have completed %s lost sword quests.", number[pcnt-2]);
+ fprintf(hook_file, "\n You have completed %s lost sword quests.", number[lscnt-2]);
else if (lscnt == 1)
fprintf(hook_file, "\n You have completed one lost sword quest.");
else