From b4b73465d0f244099be2a17a90870abc724b72a8 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 29 Dec 2023 18:44:46 -0500 Subject: [PATCH] Mostly match MxStreamer::Notify --- LEGO1/mxstreamer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/LEGO1/mxstreamer.cpp b/LEGO1/mxstreamer.cpp index add5adcc..cd2272c6 100644 --- a/LEGO1/mxstreamer.cpp +++ b/LEGO1/mxstreamer.cpp @@ -183,13 +183,10 @@ MxLong MxStreamer::Notify(MxParam& p_param) MxStreamController* c = static_cast(p_param).GetController(); - if (!c->FUN_100c20d0(ds)) { - MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c); - NotificationManager()->Send(this, ¬if); - } - else { + if (c->FUN_100c20d0(ds)) delete c; - } + else + NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c)); } return 0;