Use string indices

This commit is contained in:
JustArchi
2020-04-18 18:28:15 +02:00
parent b23f634c9b
commit 5d4e2eaf64
4 changed files with 5 additions and 4 deletions

View File

@@ -387,7 +387,7 @@ namespace ArchiSteamFarm {
}
// The last 4 bits of the mac say where the code starts
int start = hash[hash.Length - 1] & 0x0f;
int start = hash[^1] & 0x0f;
// Extract those 4 bytes
byte[] bytes = new byte[4];