diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-05 14:11:43 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-05 14:11:43 +0000 |
commit | c4c3107d53002da172af6d93e21a8741d9b0b266 (patch) | |
tree | c2cd8ea26452fc322adb4e4553685a6f7c88217f /src | |
parent | 4a7dd96086cc2ece33d876671db5b0cb8d82b1ac (diff) | |
download | hercules-c4c3107d53002da172af6d93e21a8741d9b0b266.tar.gz hercules-c4c3107d53002da172af6d93e21a8741d9b0b266.tar.bz2 hercules-c4c3107d53002da172af6d93e21a8741d9b0b266.tar.xz hercules-c4c3107d53002da172af6d93e21a8741d9b0b266.zip |
Changed the 'getpartyleader' script command so that it returns a map name instead of the useless mapindex number.
Also fixed it so that it doesn't throw a 'args of aFree is not valid pointer' error (although I'm not at all sure that the fix is correct).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9787 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3cce74af1..a8b68db03 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -3877,7 +3877,7 @@ struct script_function buildin_func[] = { {buildin_getcharid,"getcharid","i*"}, {buildin_getpartyname,"getpartyname","i"}, {buildin_getpartymember,"getpartymember","i*"}, - {buildin_getpartyleader,"getpartyleader","i*"}, + {buildin_getpartyleader,"getpartyleader","i?"}, {buildin_getguildname,"getguildname","i"}, {buildin_getguildmaster,"getguildmaster","i"}, {buildin_getguildmasterid,"getguildmasterid","i"}, @@ -6006,13 +6006,13 @@ int buildin_getpartyleader(struct script_state *st) push_val(st->stack,C_INT,p->party.member[i].class_); break; case 4: - push_val(st->stack,C_INT,p->party.member[i].map); + push_str(st->stack,C_CONSTSTR,(char*)mapindex_id2name(p->party.member[i].map)); break; case 5: push_val(st->stack,C_INT,p->party.member[i].lv); break; default: - push_str(st->stack,C_STR,p->party.member[i].name); + push_str(st->stack,C_CONSTSTR,p->party.member[i].name); break; } return 0; |