summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 07:21:48 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 07:21:48 +0000
commit4eabbb012ad6e6a4b9b3343e090b96de2841c1cf (patch)
treec7239af4c1e62dd9e6019fe1dd615df840422ce2 /src/char/char.c
parent245f3dbc96cbbefc890ef2cd957f71185470e32f (diff)
downloadhercules-4eabbb012ad6e6a4b9b3343e090b96de2841c1cf.tar.gz
hercules-4eabbb012ad6e6a4b9b3343e090b96de2841c1cf.tar.bz2
hercules-4eabbb012ad6e6a4b9b3343e090b96de2841c1cf.tar.xz
hercules-4eabbb012ad6e6a4b9b3343e090b96de2841c1cf.zip
* Change scripting engine's NPC scope vars to dot (.) style.
* Improved and (should be fully) fixed the mob control engine. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6769 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index aac8135a9..34c366a84 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2917,9 +2917,10 @@ int parse_frommap(int fd) {
return 0;
}
- if(pos) // If the player's already in the list, remove the entry and shift the following ones 1 step up
+ if(pos){ // If the player's already in the list, remove the entry and shift the following ones 1 step up
memmove(list + pos - 1, list + pos, (size - pos) * sizeof(struct fame_list));
list[size].fame = 0; // At worst, the guy'll end up last (shouldn't happen if fame only goes up)
+ }
for(i = 0; i < size; i++) // Find the position where the player has to be inserted
if(fame >= list[i].fame) { // When found someone with less or as much fame, insert just above