Skip to content

Commit 178a354

Browse files
committed
Moved a few variables
1 parent 53d1f8c commit 178a354

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/core/modules/steam/steam_wrap.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ class CSteamIDExt
5555

5656
char account_type_identifier;
5757
uint32 account_instance;
58+
EAccountType account_type;
59+
EChatSteamIDInstanceFlags default_account_instance;
5860

5961
// Try SteamID3 with account instance
6062
if (sscanf(input, "[%c:%u:%u:%u]", &account_type_identifier, &universe, &account_id, &account_instance) == 4) {
61-
EAccountType account_type;
62-
EChatSteamIDInstanceFlags default_account_instance;
63-
6463
if (!ParseAccountTypeIdentifier(account_type_identifier, account_type, default_account_instance))
6564
BOOST_RAISE_EXCEPTION(PyExc_ValueError, "Invalid account type identifier for SteamID3 value '%s'.", input)
6665

@@ -69,9 +68,6 @@ class CSteamIDExt
6968

7069
// Try SteamID3 without account instance
7170
if (sscanf(input, "[%c:%u:%u]", &account_type_identifier, &universe, &account_id) == 3) {
72-
EAccountType account_type;
73-
EChatSteamIDInstanceFlags default_account_instance;
74-
7571
if (!ParseAccountTypeIdentifier(account_type_identifier, account_type, default_account_instance))
7672
BOOST_RAISE_EXCEPTION(PyExc_ValueError, "Invalid account type identifier for SteamID3 value '%s'.", input)
7773

0 commit comments

Comments
 (0)