diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 7a4bf35c..e4eb7eac 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -334,7 +334,7 @@ static cell_t sm_GetClientIP(IPluginContext *pCtx, const cell_t *params) // Must match clients.inc enum class AuthStringType { - Engine, + Engine = 0, Steam2, Steam3, SteamID64, @@ -405,7 +405,7 @@ static cell_t SteamIDToLocal(IPluginContext *pCtx, int index, AuthStringType aut universe = 0; } - snprintf(szAuth, sizeof(szAuth), "STEAM_%u:%u:%u", universe, accountId % 2, accountId >> 1); + snprintf(szAuth, sizeof(szAuth), "STEAM_%u:%u:%u", universe, accountId & 1, accountId >> 1); } else if (instance != 1) { diff --git a/plugins/include/clients.inc b/plugins/include/clients.inc index 600bf3fe..61045683 100644 --- a/plugins/include/clients.inc +++ b/plugins/include/clients.inc @@ -56,7 +56,7 @@ enum NetFlow */ enum AuthStringType { - AuthString_Engine, /**< The game-specific auth string as returned from the engine */ + AuthString_Engine = 0, /**< The game-specific auth string as returned from the engine */ // The following are only available on games that support Steam authentication. AuthString_Steam2, /**< Steam2 rendered format, ex "STEAM_1:1:4153990" */