Resolved a potential map crash on instance destruction (fixes #1333)
* Adjusted the instance destruction checks on party and guild breaks.
This commit is contained in:
@@ -1852,10 +1852,8 @@ int guild_break(struct map_session_data *sd,char *name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (g->instance_id) {
|
||||
instance_data[g->instance_id].owner_id = 0;
|
||||
if (g->instance_id)
|
||||
instance_destroy(g->instance_id);
|
||||
}
|
||||
|
||||
/* Regardless of char server allowing it, we clear the guild master's auras */
|
||||
if ((ud = unit_bl2ud(&sd->bl))) {
|
||||
|
||||
Reference in New Issue
Block a user