summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c4
-rw-r--r--src/char/int_party.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index cac227cfa..97771c87a 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3064,7 +3064,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
for(i = 0; i < size && fame < list[i].fame; i++);
diff --git a/src/char/int_party.c b/src/char/int_party.c
index 7f09095d9..e80a5de63 100644
--- a/src/char/int_party.c
+++ b/src/char/int_party.c
@@ -620,7 +620,7 @@ int mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id) {
return 0;
}
-int mapif_parse_PartyChangeMap(int fd, int party_id, int account_id, int char_id, unsigned short map, int online, int lv)
+int mapif_parse_PartyChangeMap(int fd, int party_id, int account_id, int char_id, unsigned short map, int online, unsigned int lv)
{
struct party_data *p;
int i;