mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 01:22:25 +00:00
[Databuckets] Fix rarer same bucket name scoping overlap issue (#3509)
This commit is contained in:
parent
2d61cd2b9a
commit
81cee49ea1
@ -194,12 +194,23 @@ std::string DataBucket::GetScopedDbFilters(const DataBucketKey &k)
|
||||
if (k.character_id > 0) {
|
||||
query.emplace_back(fmt::format("character_id = {}", k.character_id));
|
||||
}
|
||||
else if (k.npc_id > 0) {
|
||||
else {
|
||||
query.emplace_back("character_id = 0");
|
||||
}
|
||||
|
||||
if (k.npc_id > 0) {
|
||||
query.emplace_back(fmt::format("npc_id = {}", k.npc_id));
|
||||
}
|
||||
else if (k.bot_id > 0) {
|
||||
else {
|
||||
query.emplace_back("npc_id = 0");
|
||||
}
|
||||
|
||||
if (k.bot_id > 0) {
|
||||
query.emplace_back(fmt::format("bot_id = {}", k.bot_id));
|
||||
}
|
||||
else {
|
||||
query.emplace_back("bot_id = 0");
|
||||
}
|
||||
|
||||
return fmt::format(
|
||||
"{} {}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user