diff --git a/include/MUtils/Lazy.h b/include/MUtils/Lazy.h index a0031c4..267b751 100644 --- a/include/MUtils/Lazy.h +++ b/include/MUtils/Lazy.h @@ -53,7 +53,7 @@ namespace MUtils T& operator*(void) { T *value; - while (!(value = m_value.fetchAndAddOrdered(0))) + while (!(value = m_value)) { if (!(value = m_initializer())) {