Fix cLib_calcTimer (#1963)

* Fix cLib_calcTimer

* Clean up some additional RELs
This commit is contained in:
Jacob Patzer
2023-10-21 15:57:42 -07:00
committed by GitHub
parent 415005001e
commit e6810e11e9
15 changed files with 18 additions and 185 deletions
+2 -1
View File
@@ -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;