mirror of https://github.com/zeldaret/tp.git
Update cLib_calcTimer (#2179)
This commit is contained in:
parent
19e3defe5b
commit
09beea4a09
|
@ -87,8 +87,7 @@ inline T cLib_maxLimit(T val, T max) {
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T cLib_calcTimer(T* value) {
|
T cLib_calcTimer(T* value) {
|
||||||
// Casting 0 to u16 may not be correct, but is matching for now
|
if (*(T*)value != 0) {
|
||||||
if (*value != (u16)0) {
|
|
||||||
*value = *value - 1;
|
*value = *value - 1;
|
||||||
}
|
}
|
||||||
return *value;
|
return *value;
|
||||||
|
|
Loading…
Reference in New Issue