diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-10-09 01:57:04 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-10-09 01:57:04 +0000 |
commit | 46afaed6555abf5cfdb979e7b1e0b3a619ee36ae (patch) | |
tree | 825b8e97cad9ee3c416d327c1e5f54b1ba1204d3 /src/map/battleground.c | |
parent | 5ab81c08011abb8af9a1001e7835c72c6de96142 (diff) | |
download | hercules-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/battleground.c')
-rw-r--r-- | src/map/battleground.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c index 40fe2a0c6..fad22c38f 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -173,7 +173,7 @@ int bg_create(unsigned short mapindex, short rx, short ry, const char *ev, const int bg_team_get_id(struct block_list *bl) { - nullpo_retr(0, bl); + nullpo_ret(bl); switch( bl->type ) { case BL_PC: @@ -209,7 +209,7 @@ int bg_send_message(struct map_session_data *sd, const char *mes, int len) { struct battleground_data *bg; - nullpo_retr(0, sd); + nullpo_ret(sd); if( sd->state.bg_id == 0 || (bg = bg_team_search(sd->state.bg_id)) == NULL ) return 0; clif_bg_message(bg, sd->status.name, mes, len); @@ -221,7 +221,7 @@ int bg_send_xy_timer_sub(DBKey key, void *data, va_list ap) struct battleground_data *bg = (struct battleground_data *)data; struct map_session_data *sd; int i; - nullpo_retr(0, bg); + nullpo_ret(bg); for( i = 0; i < MAX_BG_MEMBERS; i++ ) { if( (sd = bg->members[i].sd) == NULL ) |