From 508d5b9e720f81ebf8148fd07faef1c61e9901b2 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sun, 15 Sep 2024 21:40:03 +0200 Subject: Actor cleanup (#32) * Actor cleanup --------- Co-authored-by: elijah-thomas774 --- src/f/f_base.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/f/f_base.cpp') diff --git a/src/f/f_base.cpp b/src/f/f_base.cpp index 640f83e2..188ace59 100644 --- a/src/f/f_base.cpp +++ b/src/f/f_base.cpp @@ -24,7 +24,6 @@ void (*fBase_c::sUnloadCallback)(); fBase_c::fBase_c() : unique_ID(m_rootUniqueID), params(m_tmpCtData.params), profile_name(m_tmpCtData.prof_name), group_type(m_tmpCtData.group_type), manager(this) { - m_rootUniqueID = (fBaseID_e)(m_rootUniqueID + 1); if (m_rootUniqueID == INVALID) { for (;;) { @@ -68,7 +67,7 @@ int fBase_c::commonPack(int (fBase_c::*doFunc)(), int (fBase_c::*preFunc)(), voi // Pre Function to setup int result = (this->*preFunc)(); - if (result) { + if (result != NOT_READY) { // Do function to handle current result = (this->*doFunc)(); if (result == NOT_READY) { @@ -115,7 +114,7 @@ void fBase_c::postCreate(MAIN_STATE_e state) { /* 802e1670 */ int fBase_c::doDelete() { - return 1; + return SUCCEEDED; } /* 802e1680 */ -- cgit v1.2.3