mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 15:00:55 -04:00
Fix cLib_calcTimer (#1963)
* Fix cLib_calcTimer * Clean up some additional RELs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user