mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 08:17:19 +01:00 
			
		
		
		
	Don't remove immediate routines bucket.
This commit is contained in:
		@@ -71,8 +71,8 @@ void Routine::Detach(Routine * routine, Interval interval)
 | 
			
		||||
    {
 | 
			
		||||
        bitr->mRoutines.erase(ritr); // Then erase it and move on
 | 
			
		||||
    }
 | 
			
		||||
    // Any reason to keep this bucket?
 | 
			
		||||
    if (bitr->mRoutines.empty())
 | 
			
		||||
    // Any reason to keep this bucket? (don't immediate routines with interval of 1)
 | 
			
		||||
    if (interval != 1 && bitr->mRoutines.empty())
 | 
			
		||||
    {
 | 
			
		||||
        s_Buckets.erase(bitr); // Remove the bucket as well
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user