mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Don't remove immediate routines bucket.
This commit is contained in:
parent
ad9e02e5fb
commit
f3af787bad
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user