mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 06:53:30 +00:00
remove std stoi
This commit is contained in:
@@ -1302,11 +1302,12 @@ bool Minecraft::joinMultiplayerFromString( const std::string& server )
|
||||
}
|
||||
|
||||
printf("%s \n", port.c_str());
|
||||
|
||||
|
||||
if (isLookingForMultiplayer && netCallback) {
|
||||
isLookingForMultiplayer = false;
|
||||
char *endptr;
|
||||
printf("test");
|
||||
return raknetInstance->connect(ip.c_str(), std::stoi(port));
|
||||
return raknetInstance->connect(ip.c_str(), strtol(port.c_str(), &endptr, 10));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user