login: fix broken post remove datagram

This commit is contained in:
John Cote 2020-01-01 17:58:39 -05:00
parent 28fe831578
commit b34006d046

View file

@ -607,7 +607,8 @@ class LoadAvatarOperation(AvatarOperation):
cleanupDatagram.addUint32(self.avId)
datagram = PyDatagram()
datagram.addServerHeader(channel, self.loginManager.air.ourChannel, CLIENTAGENT_ADD_POST_REMOVE)
datagram.appendData(cleanupDatagram.getMessage())
datagram.addUint16(datagram.getLength())
datagram.appendData(datagram.getMessage())
self.loginManager.air.send(datagram)
self.loginManager.air.sendActivate(self.avId, 0, 0, self.loginManager.air.dclassesByName['DistributedToonUD'])