From b86a9a31e664cc4c5f1e7e3a55c0b131e5c1564b Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 26 Feb 2023 19:13:27 -0400 Subject: TObject: Make `all_parents_unqueued_for_destruction()` return an int rather than a bool This is needed for matching other stuff. --- include/pso/TObject.h | 2 +- src/pso/TObject.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pso/TObject.h b/include/pso/TObject.h index 851e4e2..87d2bed 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -173,7 +173,7 @@ public: void empty_func2(); void log(const char *str); int get_node_count(); - bool all_parents_unqueued_for_destruction(); + int all_parents_unqueued_for_destruction(); static void *alloc(size_t size); static void free(void *ptr); bool toggle_flag_9_if_flag_10_is_clear(); diff --git a/src/pso/TObject.cpp b/src/pso/TObject.cpp index 9c97146..d065518 100644 --- a/src/pso/TObject.cpp +++ b/src/pso/TObject.cpp @@ -41,7 +41,7 @@ void *TObject::alloc(size_t size) { } -bool TObject::all_parents_unqueued_for_destruction() { +int TObject::all_parents_unqueued_for_destruction() { for (TObject *parent = this; parent != NULL; parent = parent->m_up) { if (parent->get_flags(QUEUE_DESTRUCTION)) { return false; -- cgit v1.2.3-13-gbd6f