[Bots] Missing boolean returns on DeletePetStats and SaveInspectMessage (#4031)

This commit is contained in:
JJ 2024-01-30 12:07:02 -05:00 committed by GitHub
parent ae79022e06
commit f98c79fdba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1356,7 +1356,7 @@ bool BotDatabase::DeletePetStats(const uint32 bot_id)
return true; 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) 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) { if (bot_message.size() > UINT8_MAX) {
bot_message = bot_message.substr(0, UINT8_MAX); bot_message = bot_message.substr(0, UINT8_MAX);
} }
return true;
} }
bool BotDatabase::DeleteInspectMessage(const uint32 bot_id) bool BotDatabase::DeleteInspectMessage(const uint32 bot_id)