diff options
author | shennetsind <ind@henn.et> | 2013-10-24 11:36:29 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-24 11:36:29 -0200 |
commit | 835d55b07858202198564bc6c2ff0888a7f78d31 (patch) | |
tree | cd87aa78b3688f7c0a9455ef4693554230debc45 /src | |
parent | 6cde9b8a9aafad3f75cac21d2ff89cd71bd5204c (diff) | |
download | hercules-835d55b07858202198564bc6c2ff0888a7f78d31.tar.gz hercules-835d55b07858202198564bc6c2ff0888a7f78d31.tar.bz2 hercules-835d55b07858202198564bc6c2ff0888a7f78d31.tar.xz hercules-835d55b07858202198564bc6c2ff0888a7f78d31.zip |
Fixed nullpo calls in script.c mismatching new macro return type
Thanks to Kisuka.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/script.c b/src/map/script.c index e6d23541a..3c0742405 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5639,7 +5639,7 @@ BUILDIN(checkweight2) int nb_it, nb_nb; //array size TBL_PC *sd = script->rid2sd(st); - nullpo_retr(1,sd); + nullpo_retr(false,sd); data_it = script_getdata(st, 2); data_nb = script_getdata(st, 3); @@ -8995,8 +8995,8 @@ BUILDIN(itemeffect) { struct script_data *data; struct item_data *item_data; - nullpo_retr( 1, ( sd = script->rid2sd( st ) ) ); - nullpo_retr( 1, ( nd = (TBL_NPC *)map->id2bl( sd->npc_id ) ) ); + nullpo_retr( false, ( sd = script->rid2sd( st ) ) ); + nullpo_retr( false, ( nd = (TBL_NPC *)map->id2bl( sd->npc_id ) ) ); data = script_getdata( st, 2 ); script->get_val( st, data ); @@ -15456,7 +15456,7 @@ BUILDIN(readbook) BUILDIN(setquest) { struct map_session_data *sd = script->rid2sd(st); - nullpo_ret(sd); + nullpo_retr(false,sd); quest->add(sd, script_getnum(st, 2)); return true; @@ -15465,7 +15465,7 @@ BUILDIN(setquest) BUILDIN(erasequest) { struct map_session_data *sd = script->rid2sd(st); - nullpo_ret(sd); + nullpo_retr(false,sd); quest->delete(sd, script_getnum(st, 2)); return true; @@ -15474,7 +15474,7 @@ BUILDIN(erasequest) BUILDIN(completequest) { struct map_session_data *sd = script->rid2sd(st); - nullpo_ret(sd); + nullpo_retr(false,sd); quest->update_status(sd, script_getnum(st, 2), Q_COMPLETE); return true; @@ -15483,7 +15483,7 @@ BUILDIN(completequest) BUILDIN(changequest) { struct map_session_data *sd = script->rid2sd(st); - nullpo_ret(sd); + nullpo_retr(false,sd); quest->change(sd, script_getnum(st, 2),script_getnum(st, 3)); return true; @@ -15494,7 +15494,7 @@ BUILDIN(checkquest) struct map_session_data *sd = script->rid2sd(st); quest_check_type type = HAVEQUEST; - nullpo_ret(sd); + nullpo_retr(false,sd); if( script_hasdata(st, 3) ) type = (quest_check_type)script_getnum(st, 3); |