Fixed an inverted nullpointer check (#5673)
Fixes #5654 Thanks to @Singe-Horizontal
This commit is contained in:
parent
7e27844a66
commit
46cf310364
@ -652,7 +652,7 @@ int bg_team_get_id(struct block_list *bl)
|
||||
struct map_session_data *msd;
|
||||
struct mob_data *md = (TBL_MOB*)bl;
|
||||
|
||||
if( md->special_state.ai && !(msd = map_id2sd(md->master_id)) )
|
||||
if( md->special_state.ai && (msd = map_id2sd(md->master_id)) != nullptr )
|
||||
return msd->bg_id;
|
||||
|
||||
return md->bg_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user