From 18b82cdc5a29a407af044ed7572dbd4bbcf64f9e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 13 Jul 2024 14:46:35 -0700 Subject: [PATCH] cLib_calcTimer fix thanks to DanTGL --- include/SSystem/SComponent/c_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index fdbefcb55..8f6bb36f2 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -93,7 +93,7 @@ T cLib_getRndValue(T min, T range) { template T cLib_calcTimer(T* value) { - if (*value != (u16)0) { + if (*(T*)value != 0) { *value = *value - 1; } return *value;