mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +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->rewindAtomic();
|
||||||
i->first->release();
|
i->first->release();
|
||||||
available.push(i->second);
|
available.push(i->second);
|
||||||
playing.erase(i);
|
playing.erase(i++);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user