1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

Lexical cast missing on windows

This commit is contained in:
root 2018-09-26 09:11:59 -04:00
parent 7fdcc53af8
commit bebfd928ad
2 changed files with 2 additions and 1 deletions

View file

@ -401,7 +401,7 @@ void Core::Network::GameConnection::handlePackets( const Core::Network::Packets:
case SEGMENTTYPE_SESSIONINIT:
{
char* id = ( char* ) &( inPacket.data[ 4 ] );
uint32_t playerId = boost::lexical_cast< uint32_t >( id );
uint32_t playerId = std::stoi( id );
auto pCon = boost::static_pointer_cast< GameConnection, Connection >( shared_from_this() );
// try to retrieve the session for this id

View file

@ -29,6 +29,7 @@
#include "ForwardsZone.h"
#include <boost/make_shared.hpp>
#include <boost/lexical_cast.hpp>
#include <thread>
#include "Framework.h"