From f98c79fdba3d37ade7b61f7a493cb3317e1c565d Mon Sep 17 00:00:00 2001 From: JJ <3617814+joligario@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:07:02 -0500 Subject: [PATCH] [Bots] Missing boolean returns on DeletePetStats and SaveInspectMessage (#4031) --- zone/bot_database.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/bot_database.cpp b/zone/bot_database.cpp index dd23cf1a9..bd963723f 100644 --- a/zone/bot_database.cpp +++ b/zone/bot_database.cpp @@ -1356,7 +1356,7 @@ bool BotDatabase::DeletePetStats(const uint32 bot_id) return true; } - BotPetsRepository::DeleteOne(database, saved_pet_index); + return BotPetsRepository::DeleteOne(database, saved_pet_index) == 1; } bool BotDatabase::LoadPetBuffs(const uint32 bot_id, SpellBuff_Struct* pet_buffs) @@ -1630,6 +1630,7 @@ bool BotDatabase::SaveInspectMessage(const uint32 bot_id, const InspectMessage_S if (bot_message.size() > UINT8_MAX) { bot_message = bot_message.substr(0, UINT8_MAX); } + return true; } bool BotDatabase::DeleteInspectMessage(const uint32 bot_id)