mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 12:45:36 +00:00
remove Pos < 0 check as Pos is unsigned and never < 0 (always true)
This commit is contained in:
parent
db152e09e9
commit
de859f4762
@ -127,7 +127,7 @@ void UDPParser(Client* c, std::string Packet) {
|
|||||||
sockaddr_in client {};
|
sockaddr_in client {};
|
||||||
std::string Data = UDPRcvFromClient(client); //Receives any data from Socket
|
std::string Data = UDPRcvFromClient(client); //Receives any data from Socket
|
||||||
auto Pos = Data.find(':');
|
auto Pos = Data.find(':');
|
||||||
if (Data.empty() || Pos < 0 || Pos > 2)
|
if (Data.empty() || Pos > 2)
|
||||||
continue;
|
continue;
|
||||||
/*char clientIp[256];
|
/*char clientIp[256];
|
||||||
ZeroMemory(clientIp, 256); ///Code to get IP we don't need that yet
|
ZeroMemory(clientIp, 256); ///Code to get IP we don't need that yet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user