diff --git a/sdk/plugins/gallery.cpp b/sdk/plugins/gallery.cpp index 9362b2f..eef6a8e 100644 --- a/sdk/plugins/gallery.cpp +++ b/sdk/plugins/gallery.cpp @@ -226,7 +226,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; }