summaryrefslogtreecommitdiffstats
path: root/larn/savelev.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-03 19:29:50 +0000
committerdholland <dholland@NetBSD.org>2008-02-03 19:29:50 +0000
commit257d036dc21241f2c8202514775c399945bbd3e2 (patch)
tree6fbefa9df1cd63b4d253c9d38862d45de444e313 /larn/savelev.c
parentbf91baeffb42cde8688e3e5735369c864ed29d91 (diff)
downloadbsdgames-darwin-257d036dc21241f2c8202514775c399945bbd3e2.tar.gz
bsdgames-darwin-257d036dc21241f2c8202514775c399945bbd3e2.tar.zst
bsdgames-darwin-257d036dc21241f2c8202514775c399945bbd3e2.zip
Some assorted minor cleanups, from larn 12.2.
Diffstat (limited to 'larn/savelev.c')
-rw-r--r--larn/savelev.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/larn/savelev.c b/larn/savelev.c
index 06e77d9a..17cc6bec 100644
--- a/larn/savelev.c
+++ b/larn/savelev.c
@@ -1,9 +1,9 @@
-/* $NetBSD: savelev.c,v 1.5 2008/01/28 05:38:54 dholland Exp $ */
+/* $NetBSD: savelev.c,v 1.6 2008/02/03 19:29:50 dholland Exp $ */
/* savelev.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: savelev.c,v 1.5 2008/01/28 05:38:54 dholland Exp $");
+__RCSID("$NetBSD: savelev.c,v 1.6 2008/02/03 19:29:50 dholland Exp $");
#endif /* not lint */
#include "header.h"
#include "extern.h"
@@ -32,7 +32,8 @@ savelevel()
pcel->hitp = *phitp++;
pcel->item = *pitem++;
pcel->know = *pknow++;
- pcel++->iarg = *piarg++;
+ pcel->iarg = *piarg++;
+ pcel++;
}
}
@@ -60,6 +61,7 @@ getlevel()
*phitp++ = pcel->hitp;
*pitem++ = pcel->item;
*pknow++ = pcel->know;
- *piarg++ = pcel++->iarg;
+ *piarg++ = pcel->iarg;
+ pcel++;
}
}