Quest data should be cleared on char deletion (#4633)
* Fixes #4628. * Player quest data should be deleted when the character is deleted. Thanks to @Tokeiburu!
This commit is contained in:
@@ -1708,6 +1708,10 @@ enum e_char_del_response char_delete(struct char_session_data* sd, uint32 char_i
|
||||
if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `char_id` = '%d'", schema_config.bonus_script_db, char_id) )
|
||||
Sql_ShowDebug(sql_handle);
|
||||
|
||||
/* Quest Data */
|
||||
if (SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `char_id` = '%d'", schema_config.quest_db, char_id))
|
||||
Sql_ShowDebug(sql_handle);
|
||||
|
||||
/* Achievement Data */
|
||||
if (SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `char_id` = '%d'", schema_config.achievement_table, char_id))
|
||||
Sql_ShowDebug(sql_handle);
|
||||
|
||||
Reference in New Issue
Block a user