diff options
| author | Jacob Patzer <37888505+jakepatzer@users.noreply.github.com> | 2023-10-21 15:57:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 15:57:42 -0700 |
| commit | d61ae29942c6fa190fbd78932c98b82cd90538b1 (patch) | |
| tree | 6d36617b8e300a1513fea82e3af7ea6859290a20 /include/SSystem/SComponent | |
| parent | 0ae34ede587668a8d35146bebe8b7ee8113a0847 (diff) | |
Fix cLib_calcTimer (#1963)
* Fix cLib_calcTimer
* Clean up some additional RELs
Diffstat (limited to 'include/SSystem/SComponent')
| -rw-r--r-- | include/SSystem/SComponent/c_lib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index 9e6ce9c990..efb1c024e4 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -87,7 +87,8 @@ inline T cLib_maxLimit(T val, T max) { template <typename T> T cLib_calcTimer(T* value) { - if (*value != 0) { + // Casting 0 to u16 may not be correct, but is matching for now + if (*value != (u16)0) { *value = *value - 1; } return *value; |
