summaryrefslogtreecommitdiff
path: root/include/SSystem
diff options
context:
space:
mode:
Diffstat (limited to 'include/SSystem')
-rw-r--r--include/SSystem/SComponent/c_lib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h
index 3d15cd8280..3e2840ad27 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 <typename T>
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;