diff --git a/uppsrc/Draw/Font.cpp b/uppsrc/Draw/Font.cpp index 58a73a98b..b43016b0d 100644 --- a/uppsrc/Draw/Font.cpp +++ b/uppsrc/Draw/Font.cpp @@ -25,12 +25,16 @@ void InvalidateFontList() sListValid = false; } +void Set__(volatile bool& b); + const Vector& Font::List() { static Vector list; if(!sListValid) { - Set__(sListValid); - list = GetAllFacesSys(); + INTERLOCKED { + Set__(sListValid); + list = GetAllFacesSys(); + } } return list; }