mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Prevent working with an invalid iterator (issue #331)
This commit is contained in:
@@ -92,9 +92,10 @@ namespace openal
|
||||
i->first->rewindAtomic();
|
||||
i->first->release();
|
||||
available.push(i->second);
|
||||
playing.erase(i);
|
||||
playing.erase(i++);
|
||||
}
|
||||
i++;
|
||||
else
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user