throbber: don't report successful load when no assets

Currently, the throbber will report a successful load when zero assets
are loaded. Change it so that zero assets do not result in a
successfully loaded throbber.

This is similar to commit 3d7f4fe441 but
for throbber objects instead of animation objects.
This commit is contained in:
Cosimo Cecchi 2014-11-07 10:12:52 -08:00 committed by Ray Strode
parent b0863e73e6
commit f2d378fe1b

View file

@ -235,7 +235,7 @@ ply_throbber_add_frames (ply_throbber_t *throbber)
number_of_entries = scandir (throbber->image_dir, &entries, NULL, versionsort);
if (number_of_entries < 0)
if (number_of_entries <= 0)
return false;
load_finished = false;