mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 14:32:17 +00:00
[Fix] Add Bazaar BulkSendTrader Limit for RoF2 (#4590)
Add Bazaar BulkSendTrader Limit
This commit is contained in:
1 parent
533dc997fd
commit
15684567cf
6 files changed
+34
-14
No files matched your search
+6
-1
@@ -3219,7 +3219,12 @@ void Client::SendBulkBazaarTraders()
|
||||
return;
|
||||
}
|
||||
|
||||
auto results = TraderRepository::GetDistinctTraders(database);
|
||||
auto results = TraderRepository::GetDistinctTraders(
|
||||
database,
|
||||
GetInstanceID(),
|
||||
EQ::constants::StaticLookup(ClientVersion())->BazaarTraderLimit
|
||||
);
|
||||
|
||||
auto p_size = 4 + 12 * results.count + results.name_length;
|
||||
auto buffer = std::make_unique<char[]>(p_size);
|
||||
memset(buffer.get(), 0, p_size);
|
||||
|
||||
Reference in new issue
Block a user