mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Lexical cast missing on windows
This commit is contained in:
parent
7fdcc53af8
commit
bebfd928ad
2 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,7 @@ void Core::Network::GameConnection::handlePackets( const Core::Network::Packets:
|
||||||
case SEGMENTTYPE_SESSIONINIT:
|
case SEGMENTTYPE_SESSIONINIT:
|
||||||
{
|
{
|
||||||
char* id = ( char* ) &( inPacket.data[ 4 ] );
|
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() );
|
auto pCon = boost::static_pointer_cast< GameConnection, Connection >( shared_from_this() );
|
||||||
|
|
||||||
// try to retrieve the session for this id
|
// try to retrieve the session for this id
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "ForwardsZone.h"
|
#include "ForwardsZone.h"
|
||||||
|
|
||||||
#include <boost/make_shared.hpp>
|
#include <boost/make_shared.hpp>
|
||||||
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue