Insert missing mutex.lock that caused a crash on mac.

This commit is contained in:
IntegratedQuantum 2024-05-13 09:06:06 +02:00
parent 758b9ec21b
commit b62c7d8cb3

View File

@ -925,6 +925,7 @@ pub fn updateMeshes(targetTime: i64) void {
mesh.needsMeshUpdate = false;
if(getNodePointer(mesh.pos).mesh != mesh) {
mutex.unlock();
defer mutex.lock();
mesh.decreaseRefCount();
continue;
}