From e95917060906aa41e1285d5b26b1ad5d97b70ee1 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Tue, 12 May 2009 19:59:56 +0000 Subject: [PATCH] Don't try referencing "not yet" defined variables git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7399 4a71c877-e1ca-e34f-864e-861f7616d084 --- tools/masterserver/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/masterserver/protocol.py b/tools/masterserver/protocol.py index a1a25ebb2..390a8f9fb 100644 --- a/tools/masterserver/protocol.py +++ b/tools/masterserver/protocol.py @@ -187,8 +187,8 @@ class BinaryProtocol20(BaseProtocol): with writeable(out) as write: # Workaround the fact that the 2.0.x versions don't # perform endian swapping - maxPlayers = _swap_endianness(maxPlayers) - currentPlayers = _swap_endianness(currentPlayers) + maxPlayers = _swap_endianness(game.maxPlayers) + currentPlayers = _swap_endianness(game.currentPlayers) write.write(self.gameFormat.pack( self._encodeName(game),