Dave Schuyler 21 years ago
parent
commit
cac12f2f59
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/distributed/NetMessenger.py

+ 3 - 1
direct/src/distributed/NetMessenger.py

@@ -1,8 +1,10 @@
 
 from cPickle import dumps, loads
 
+from direct.distributed.PyDatagram import PyDatagram
 from direct.showbase.Messenger import Messenger
 
+
 # Messages do not need to be in the MESSAGE_TYPES list.
 # This is just an optimization.  If the message is found
 # in this list, it is reduced to an integer index and
@@ -50,7 +52,7 @@ class NetMessenger(Messenger):
         """
         datagram = PyDatagram()
         # To:
-        datagram.addChannel(self.channel)
+        datagram.addChannel(self.channels[0])
         # From:
         datagram.addChannel(self.air.ourChannel)
         if 1: # We send this just because the air expects it: