Fixed an inverted nullpointer check (#5673)

Fixes #5654

Thanks to @Singe-Horizontal
This commit is contained in:
Lemongrass3110 2021-01-04 16:37:03 +01:00 committed by GitHub
parent 7e27844a66
commit 46cf310364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;