mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-27 16:56:28 -04:00
via apathy - Replace push_back with emplace_back to create a default object which is immediately accessed following the changed line via .back()
This commit is contained in:
@@ -256,7 +256,7 @@ void NetworkHandler::onReceive(Connection * c, const unsigned char * d, int s)
|
||||
{
|
||||
if(c)
|
||||
{
|
||||
services.inputQueue.push_back(IncomingData());
|
||||
services.inputQueue.emplace_back(IncomingData());
|
||||
services.inputQueue.back().connection = c;
|
||||
services.inputQueue.back().byteStream.put(d, s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user