prevent deadlock without threading support

This commit is contained in:
David Rose 2008-12-18 23:17:49 +00:00
parent 53c77b0565
commit 71e44de612

View File

@ -325,7 +325,7 @@ load_bind_anim(Loader *loader, const Filename &filename,
anim_index = anim_preload->find_anim(basename); anim_index = anim_preload->find_anim(basename);
} }
if (anim_index < 0 || !allow_async) { if (anim_index < 0 || !allow_async || !Thread::is_threading_supported()) {
// The animation is not present in the table, or allow_async is // The animation is not present in the table, or allow_async is
// false. Therefore, perform an ordinary synchronous // false. Therefore, perform an ordinary synchronous
// load-and-bind. // load-and-bind.