From ff49d9fa95f72f4ac6115b3d536dee6931f98b38 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:46:46 +0100 Subject: [PATCH] Avoid circular reference it clogs pickling and garbage-collecting (cherry picked from commit 42f690f966d6993ffb3075021dceac97fb229147) --- game/scripts/interface/parcel.rpy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game/scripts/interface/parcel.rpy b/game/scripts/interface/parcel.rpy index 2a24ad65..7738d863 100644 --- a/game/scripts/interface/parcel.rpy +++ b/game/scripts/interface/parcel.rpy @@ -1,4 +1,3 @@ - init python: class Parcel(object): """ @@ -18,7 +17,10 @@ init python: self.wait = wait self.label = label self.func = func - self.queue = mailbox.parcels + + @property + def queue(self): + return mailbox.parcels def send(self): self.mailed = True