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>
 | 
			
		||||
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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue