diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index 3d15cd82803..3e2840ad273 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -87,8 +87,7 @@ inline T cLib_maxLimit(T val, T max) { template T cLib_calcTimer(T* value) { - // Casting 0 to u16 may not be correct, but is matching for now - if (*value != (u16)0) { + if (*(T*)value != 0) { *value = *value - 1; } return *value;