diff options
| author | Daniel Hajjar <33489389+DanTGL@users.noreply.github.com> | 2024-07-15 11:48:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 02:48:30 -0700 |
| commit | 09beea4a092bc3d45bc94cd2b1d9280b7b15ce91 (patch) | |
| tree | 267b634e89081551bcf37c58a4a7c435a9e389e1 /include | |
| parent | 19e3defe5bab0ac94af7b8d836979c6becc6d499 (diff) | |
Update cLib_calcTimer (#2179)
Diffstat (limited to 'include')
| -rw-r--r-- | include/SSystem/SComponent/c_lib.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index 3d15cd8280..3e2840ad27 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -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; |
