From 8d40f556578d2ef02af134a6240f9cf96a014a26 Mon Sep 17 00:00:00 2001 From: Little Cat Date: Mon, 14 Jun 2021 05:10:56 -0300 Subject: [PATCH] distributed: Fix crash when calling sendActivate w/ fields --- direct/src/distributed/AstronInternalRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index be19541a19..ba14010e27 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -522,7 +522,7 @@ class AstronInternalRepository(ConnectionRepository): dg.addServerHeader(doId, self.ourChannel, STATESERVER_OBJECT_SET_FIELDS) dg.addUint32(doId) dg.addUint16(fieldCount) - dg.appendData(fieldPacker.getString()) + dg.appendData(fieldPacker.getBytes()) self.send(dg) # Now slide it into the zone we expect to see it in (so it # generates onto us with all of the fields in place)