summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-08 22:48:12 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-08 23:46:24 +0100
commitfe1772d6836afa5174fef562b8f477172b7ddc11 (patch)
tree12399c02fd6b54e2fdcc4519691dc6b6623e942e
parent168355580172b6724957bddc595fb00b407cfe8a (diff)
Import fix from CVS: Fix for crash bug during character dump.
-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