summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 3a42f7556..7c912af8c 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2918,7 +2918,9 @@ int parse_frommap(int fd) {
}
// If the player's already in the list, remove the entry and shift the following ones 1 step up
memmove(list+pos, list+pos+1, (size-pos-1) * sizeof(struct fame_list));
- list[size-1].fame = 0; // At worst, the guy'll end up last (shouldn't happen if fame only goes up)
+ //Clear out last entry.
+ list[size-1].id = 0;
+ list[size-1].fame = 0;
}
// Find the position where the player has to be inserted