summaryrefslogtreecommitdiff
path: root/src/q_rand.c
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 /src/q_rand.c
parent168355580172b6724957bddc595fb00b407cfe8a (diff)
Import fix from CVS: Fix for crash bug during character dump.
Diffstat (limited to 'src/q_rand.c')
-rw-r--r--src/q_rand.c4
1 files changed, 2 insertions, 2 deletions
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