Trying to catch an issue I think I saw in the debugger.

This commit is contained in:
Cory McWilliams 2024-06-17 21:23:48 -04:00
parent 0090850e10
commit df99b3aa90

View File

@ -3760,7 +3760,12 @@ void tf_ssb_ref(tf_ssb_t* ssb)
void tf_ssb_unref(tf_ssb_t* ssb)
{
ssb->ref_count--;
int new_count = --ssb->ref_count;
if (new_count < 0)
{
tf_printf("tf_ssb_unref past 0: %d\n", new_count);
abort();
}
}
void tf_ssb_set_main_thread(tf_ssb_t* ssb, bool main_thread)