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