diff --git a/sdk/plugins/gallery.cpp b/sdk/plugins/gallery.cpp index d0f954b..a90320c 100644 --- a/sdk/plugins/gallery.cpp +++ b/sdk/plugins/gallery.cpp @@ -262,7 +262,7 @@ class memGallery : public Gallery TemplateList templates = MemoryGalleries::galleries[file].mid(block*Globals->blockSize, Globals->blockSize); *done = (templates.size() < Globals->blockSize); - block = done ? 0 : block+1; + block = *done ? 0 : block+1; return templates; }