Skip to content

Commit 634eb6b

Browse files
committed
Add extra scope to make the code compile with VC6.
1 parent 549e098 commit 634eb6b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -923,11 +923,13 @@ AsciiString GameInfoToAsciiString( const GameInfo *game )
923923
}
924924

925925
UnsignedByte patchedClients = 0;
926-
for (Int i = 0; i < MAX_SLOTS; ++i)
927926
{
928-
const GameSlot* slot = game->getConstSlot(i);
929-
if (slot && slot->isHuman() && (i == game->getLocalSlotNum() || slot->getPatchVersion() >= 1337))
930-
patchedClients |= (1 << i);
927+
for (Int i = 0; i < MAX_SLOTS; ++i)
928+
{
929+
const GameSlot* slot = game->getConstSlot(i);
930+
if (slot && slot->isHuman() && (i == game->getLocalSlotNum() || slot->getPatchVersion() >= 1337))
931+
patchedClients |= (1 << i);
932+
}
931933
}
932934

933935
AsciiString statsString;

0 commit comments

Comments
 (0)