diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-17 05:53:22 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:53:11 +0100 |
commit | fc49d40c0d2f6edbbe9dde1f1b53d6a17e9d9f7d (patch) | |
tree | 5913c49b84a27927a33e3e712b4911ffba419661 /src/Body.cpp | |
parent | 5a073cf9cc4f9a58e39bcbe1ee1786e8d925d6bb (diff) |
Limit image loading to one thread in async image loader
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index d4b6c5c..eb7a1be 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1070,7 +1070,7 @@ namespace QuickMedia { std::shared_ptr<BodyItem> &item = items[index]; assert(item->visible); - int prev_index; + int prev_index = 0; if(attach_side == AttachSide::BOTTOM) { prev_index = get_previous_visible_item(index); if(prev_index == -1) |