mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Database] Move pets query to content database (#4296)
This commit is contained in:
parent
dfd1bfbd49
commit
f77eec83e5
@ -383,7 +383,7 @@ bool ZoneDatabase::GetPetEntry(const std::string& pet_type, PetRecord *p)
|
||||
bool ZoneDatabase::GetPoweredPetEntry(const std::string& pet_type, int16 pet_power, PetRecord* r)
|
||||
{
|
||||
const auto& l = PetsRepository::GetWhere(
|
||||
*this,
|
||||
content_db,
|
||||
fmt::format(
|
||||
"`type` = '{}' AND `petpower` <= {} ORDER BY `petpower` DESC LIMIT 1",
|
||||
pet_type,
|
||||
@ -395,7 +395,7 @@ bool ZoneDatabase::GetPoweredPetEntry(const std::string& pet_type, int16 pet_pow
|
||||
return false;
|
||||
}
|
||||
|
||||
auto e = l.front();
|
||||
auto &e = l.front();
|
||||
|
||||
r->npc_type = e.npcID;
|
||||
r->temporary = e.temp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user