summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-14 14:54:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-14 14:54:14 +0000
commitb07e923a07cbb964a93b8f0032a81c75e5058089 (patch)
treefb0fff88a9dd64616e788d2053b7d21b2ed27053 /src/char_sql
parent1b46141ee53e908cff5337455c7bbc05d1753a03 (diff)
downloadhercules-b07e923a07cbb964a93b8f0032a81c75e5058089.tar.gz
hercules-b07e923a07cbb964a93b8f0032a81c75e5058089.tar.bz2
hercules-b07e923a07cbb964a93b8f0032a81c75e5058089.tar.xz
hercules-b07e923a07cbb964a93b8f0032a81c75e5058089.zip
- Fixed script engine allowing scripts to set a player's zeny to negative values.
- Fixed setting hide_woe_damage making even "miss" attacks seem to connect. - Cleaned up pc_getzeny to not require doubles. - When readjusting the fame-list, the last entry's id is also reset (may fix characters appearing more than once on it?) - Some sign/unsigned comparison warning fixes. - Some 'may be used unitialized' warning fixes. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8273 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c4
-rw-r--r--src/char_sql/int_party.c2
2 files changed, 4 insertions, 2 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
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c
index 1cfc3c74b..897a110d6 100644
--- a/src/char_sql/int_party.c
+++ b/src/char_sql/int_party.c
@@ -708,7 +708,7 @@ int mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id)
return 0;
}
// When member goes to other map
-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;