mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Bots] Missing boolean returns on DeletePetStats and SaveInspectMessage (#4031)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user