aboutsummaryrefslogtreecommitdiffstats
path: root/scoretbl.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-26 07:04:01 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-26 07:04:01 +0000
commit503aa676efd5f0e5216b84eec647e348ceb0b5c1 (patch)
tree45eae66dc836807f3936dfa0e01fcd6c7912344e /scoretbl.c
parent9bd970a1d7bc60d47e576b40857fa93a4690a83a (diff)
downloadgrv-503aa676efd5f0e5216b84eec647e348ceb0b5c1.tar.gz
grv-503aa676efd5f0e5216b84eec647e348ceb0b5c1.tar.xz
grv-503aa676efd5f0e5216b84eec647e348ceb0b5c1.zip
Getting close... the only thing missing now as far as I know is the
per-level highscore stuff (and if we want to add to the character set)
Diffstat (limited to 'scoretbl.c')
-rw-r--r--scoretbl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scoretbl.c b/scoretbl.c
index 6e59af9..3f74fae 100644
--- a/scoretbl.c
+++ b/scoretbl.c
@@ -34,6 +34,7 @@ int highscore_add_total(uint64_t gameid, int64_t score,
tp->gameid = gameid;
tp->score = score;
tp->endlvl = endlvl;
+ memset(tp->player, 0, sizeof tp->player);
if ( pptr ) *pptr = tp->player;
return i+1;
} else if ( gameid == tp->gameid && score == tp->score ) {