Skip to content

Commit

Permalink
cLib_calcTimer fix
Browse files Browse the repository at this point in the history
thanks to DanTGL
  • Loading branch information
magcius committed Jul 13, 2024
1 parent 31c60bc commit 18b82cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SSystem/SComponent/c_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ T cLib_getRndValue(T min, T range) {

template <typename T>
T cLib_calcTimer(T* value) {
if (*value != (u16)0) {
if (*(T*)value != 0) {
*value = *value - 1;
}
return *value;
Expand Down

0 comments on commit 18b82cd

Please sign in to comment.