mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Fix incorrect id check and potential out of bounds lookup
This commit is contained in:
		@@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
 | 
			
		||||
    return (id <= SyncpointCount) && syncpoints[id].reserved;
 | 
			
		||||
    return (id < SyncpointCount) && syncpoints[id].reserved;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user