mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Update cLib_calcTimer (#2179)
This commit is contained in:
@@ -87,8 +87,7 @@ inline T cLib_maxLimit(T val, T max) {
|
||||
|
||||
template <typename T>
|
||||
T cLib_calcTimer(T* value) {
|
||||
// Casting 0 to u16 may not be correct, but is matching for now
|
||||
if (*value != (u16)0) {
|
||||
if (*(T*)value != 0) {
|
||||
*value = *value - 1;
|
||||
}
|
||||
return *value;
|
||||
|
||||
Reference in New Issue
Block a user