Core/Network: Fix invalid NetworkThread array access for derived classes that have additional data members (only HttpService threads were affected)

This commit is contained in:
Shauren
2025-12-22 13:06:28 +01:00
parent a4bbb61970
commit b69a1a71c6
7 changed files with 62 additions and 49 deletions

View File

@@ -16,7 +16,6 @@
*/
#include "SessionManager.h"
#include "Util.h"
bool Battlenet::SessionManager::StartNetwork(Trinity::Asio::IoContext& ioContext, std::string const& bindIp, uint16 port, int threadCount)
{
@@ -30,9 +29,9 @@ bool Battlenet::SessionManager::StartNetwork(Trinity::Asio::IoContext& ioContext
return true;
}
Trinity::Net::NetworkThread<Battlenet::Session>* Battlenet::SessionManager::CreateThreads() const
Battlenet::SessionNetworkThread* Battlenet::SessionManager::CreateThreads() const
{
return new Trinity::Net::NetworkThread<Session>[GetNetworkThreadCount()];
return new SessionNetworkThread[GetNetworkThreadCount()];
}
Battlenet::SessionManager& Battlenet::SessionManager::Instance()