Jump to content

mvptomb_destroy() - not efficient code

closed

ivanyan
2013-10-17 21:49:53
More simple code


void mvptomb_destroy(struct mob_data *md) {
        struct npc_data *nd;

        if ( (nd = map_id2nd(md->tomb_nid)) ) {
                npc_remove_map(nd);
                map_deliddb(&nd->bl);
                aFree(nd);
        }

        md->tomb_nid = 0;
}


Lemongrass
2014-01-27 09:13:45
Fixed in 5988c7a.
×
×
  • Create New...