summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent
diff options
context:
space:
mode:
Diffstat (limited to 'include/SSystem/SComponent')
-rw-r--r--include/SSystem/SComponent/c_lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h
index fdbefcb5..8f6bb36f 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 <typename T>
T cLib_calcTimer(T* value) {
- if (*value != (u16)0) {
+ if (*(T*)value != 0) {
*value = *value - 1;
}
return *value;