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