Don't try referencing "not yet" defined variables
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7399 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
52c8ba24e4
commit
e959170609
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue