From 02afe4bb98bb01bf52781a5673b190cb1c491810 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 2 Mar 2006 13:49:18 +0000 Subject: - 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 --- src/map/script.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/script.c') 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){ -- cgit v1.2.3-70-g09d2