summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-10-09 01:57:04 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-10-09 01:57:04 +0000
commit46afaed6555abf5cfdb979e7b1e0b3a619ee36ae (patch)
tree825b8e97cad9ee3c416d327c1e5f54b1ba1204d3 /src/map/party.c
parent5ab81c08011abb8af9a1001e7835c72c6de96142 (diff)
downloadhercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.gz
hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.bz2
hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.xz
hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.zip
Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 33c079fdf..e6a7ffd8b 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -185,7 +185,7 @@ int party_check_member(struct party *p)
struct map_session_data *sd;
struct s_mapiterator* iter;
- nullpo_retr(0, p);
+ nullpo_ret(p);
iter = mapit_getallusers();
for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
@@ -262,7 +262,7 @@ int party_recv_info(struct party *sp)
int i;
bool party_new = false;
- nullpo_retr(0, sp);
+ nullpo_ret(sp);
p = (struct party_data*)idb_ensure(party_db, sp->party_id, create_party);
if (!p->party.party_id) //party just received.
@@ -300,7 +300,7 @@ int party_invite(struct map_session_data *sd,struct map_session_data *tsd)
struct party_data *p=party_search(sd->status.party_id);
int i,flag=0;
- nullpo_retr(0, sd);
+ nullpo_ret(sd);
if( p == NULL )
return 0;
if( tsd == NULL) { //TODO: Find the correct reply packet.
@@ -587,7 +587,7 @@ int party_broken(int party_id)
int party_changeoption(struct map_session_data *sd,int exp,int item)
{
- nullpo_retr(0, sd);
+ nullpo_ret(sd);
if( sd->status.party_id==0)
return 0;
@@ -874,7 +874,7 @@ int party_send_xy_clear(struct party_data *p)
{
int i;
- nullpo_retr(0, p);
+ nullpo_ret(p);
for(i=0;i<MAX_PARTY;i++){
if(!p->data[i].sd) continue;
@@ -891,7 +891,7 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b
struct map_session_data* sd[MAX_PARTY];
unsigned int i, c;
- nullpo_retr(0, p);
+ nullpo_ret(p);
// count the number of players eligible for exp sharing
for (i = c = 0; i < MAX_PARTY; i++) {
@@ -1028,7 +1028,7 @@ int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_sess
int blockcount=0;
int total = 0; //Return value.
- nullpo_retr(0,sd);
+ nullpo_ret(sd);
if((p=party_search(sd->status.party_id))==NULL)
return 0;