Skip to content

Commit ac8c0a0

Browse files
const regex
1 parent 7593929 commit ac8c0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ void CGame::Packet_PlayerJoinData(CPlayerJoinDataPacket& Packet)
17861786
SString strIPAndSerial("IP: %s Serial: %s Version: %s", strIP.c_str(), strSerial.c_str(), strPlayerVersion.c_str());
17871787

17881788
// Prevent player from connecting if serial is invalid
1789-
std::regex serialRegex("^[A-F0-9]{32}$");
1789+
const std::regex serialRegex("^[A-F0-9]{32}$");
17901790
if (!std::regex_match(strSerial, serialRegex))
17911791
{
17921792
// Tell the console

0 commit comments

Comments
 (0)