diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-02 13:49:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-02 13:49:18 +0000 |
commit | 02afe4bb98bb01bf52781a5673b190cb1c491810 (patch) | |
tree | 89e23a92ce7c208ec323d39f08b4aa635b4a6179 /src/map/script.c | |
parent | 3fd46a04bd232cc9cfa49b161744ef0713b53fbb (diff) | |
download | hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.gz hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.bz2 hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.xz hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.zip |
- Fixed item pickup not picking anything unless you were in a party with item distribution set o.O
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5423 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index e439f44c2..bf0d5e780 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4365,6 +4365,10 @@ int buildin_strcharinfo(struct script_state *st) int num;
sd=script_rid2sd(st);
+ if (!sd) { //Avoid crashing....
+ push_str(st->stack,C_CONSTSTR,(unsigned char *) "");
+ return 0;
+ }
num=conv_num(st,& (st->stack->stack_data[st->start+2]));
if(sd){
switch(num){
|