Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / quicktune.cpp
index b0e2dc6d5bbd731889f488ce1960ba761dc42b04..37d4933de5605b0a69b37839250ff6219da1432d 100644 (file)
@@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 #include "quicktune.h"
-#include "threading/mutex.h"
 #include "threading/mutex_auto_lock.h"
 #include "util/string.h"
 
@@ -49,12 +48,12 @@ void QuicktuneValue::relativeAdd(float amount)
 
 static std::map<std::string, QuicktuneValue> g_values;
 static std::vector<std::string> g_names;
-Mutex *g_mutex = NULL;
+std::mutex *g_mutex = NULL;
 
 static void makeMutex()
 {
        if(!g_mutex){
-               g_mutex = new Mutex();
+               g_mutex = new std::mutex();
        }
 }