Fixed possible crash in optimized ministars animation.

This commit is contained in:
23rd 2022-12-27 21:58:20 +03:00
parent 5bf46c0e90
commit 36391617d7
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ MiniStars::MiniStars(Fn<void(const QRect &r)> updateCallback, bool opaque)
}) {
if (anim::Disabled()) {
const auto from = _deathTime.from + _deathTime.length;
auto r = bytes::vector(from);
auto r = bytes::vector(from + 1);
base::RandomFill(r.data(), r.size());
for (auto i = -from; i < 0; i += randomInterval(_lifeLength, r[-i])) {