mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed possible crash in optimized ministars animation.
This commit is contained in:
parent
5bf46c0e90
commit
36391617d7
1 changed files with 1 additions and 1 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue