|
@@ -1511,7 +1511,7 @@ int delete_char_sql(int char_id)
|
|
|
Sql_ShowDebug(sql_handle);
|
|
|
*/
|
|
|
|
|
|
- if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `guild_id` FROM `%s` WHERE `master` = '%s'", guild_db, esc_name) )
|
|
|
+ if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `guild_id` FROM `%s` WHERE `char_id` = '%d'", guild_db, char_id) )
|
|
|
Sql_ShowDebug(sql_handle);
|
|
|
else if( Sql_NumRows(sql_handle) > 0 )
|
|
|
mapif_parse_BreakGuild(0,guild_id);
|