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
master
Giel van Schijndel 2009-05-12 19:59:56 +00:00 committed by Git SVN Gateway
parent 52c8ba24e4
commit e959170609
1 changed files with 2 additions and 2 deletions

View File

@ -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),