Skip to content

Commit 9482643

Browse files
committed
Fix a magic number in GetChallenge function.
1 parent 4212852 commit 9482643

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SteamQueryNet/SteamQueryNet/ServerQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void RenewChallenge()
144144
byte[] response = SendRequest(RequestHeaders.A2S_PLAYER, BitConverter.GetBytes(-1));
145145
if (response.Length > 0)
146146
{
147-
_currentChallenge = BitConverter.ToInt32(response.Skip(5).Take(sizeof(int)).ToArray(), 0);
147+
_currentChallenge = BitConverter.ToInt32(response.Skip(RESPONSE_CODE_INDEX).Take(sizeof(int)).ToArray(), 0);
148148
}
149149
}
150150

0 commit comments

Comments
 (0)