summaryrefslogtreecommitdiffstats
path: root/larn/scores.c
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-04-20 22:00:26 +0000
committermycroft <mycroft@NetBSD.org>1993-04-20 22:00:26 +0000
commit10e9633963797cac6bb94bb2950e7a1fcc25c1d3 (patch)
tree8c6c0902173e113726e24c7515abccdbc208456b /larn/scores.c
parent398e51a3c905d11cf31c42e7bd5cce452bcd5534 (diff)
downloadbsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.tar.gz
bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.tar.zst
bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.zip
Don't modify string constants.
Diffstat (limited to 'larn/scores.c')
-rw-r--r--larn/scores.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/larn/scores.c b/larn/scores.c
index f6cf15c1..7ffa4b77 100644
--- a/larn/scores.c
+++ b/larn/scores.c
@@ -290,8 +290,8 @@ showallscores()
register int i,j;
lflush(); lcreat((char*)0); if (readboard()<0) return;
c[WEAR] = c[WIELD] = c[SHIELD] = -1; /* not wielding or wearing anything */
- for (i=0; i<MAXPOTION; i++) potionname[i][0]=' ';
- for (i=0; i<MAXSCROLL; i++) scrollname[i][0]=' ';
+ for (i=0; i<MAXPOTION; i++) potionname[i]=potionhide[i];
+ for (i=0; i<MAXSCROLL; i++) scrollname[i]=scrollhide[i];
i=winshou(); j=shou(1);
if (i+j==0) lprcat(esb); else lprc('\n');
lflush();