diff --git a/zone/bot.cpp b/zone/bot.cpp index 8e656617a..36e037b85 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -6788,7 +6788,7 @@ bool Bot::ProcessGuildRemoval(Client* guildOfficer, std::string botName) { if(guildOfficer && !botName.empty()) { Bot* botToUnGuild = entity_list.GetBotByBotName(botName); if(botToUnGuild) { - if (database.botdb.SaveGuildMembership(botToUnGuild->GetBotID(), 0, 0)) + if (database.botdb.DeleteGuildMembership(botToUnGuild->GetBotID())) Result = true; } else { uint32 ownerId = 0; @@ -6797,7 +6797,7 @@ bool Bot::ProcessGuildRemoval(Client* guildOfficer, std::string botName) { uint32 botId = 0; if (!database.botdb.LoadBotID(ownerId, botName, botId)) guildOfficer->Message(Chat::Red, "%s for '%s'", BotDatabase::fail::LoadBotID(), botName.c_str()); - if (botId && database.botdb.SaveGuildMembership(botId, 0, 0)) + if (botId && database.botdb.DeleteGuildMembership(botId)) Result = true; }