mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-12 22:09:18 -04:00
Insert missing mutex.lock that caused a crash on mac.
This commit is contained in:
parent
758b9ec21b
commit
b62c7d8cb3
@ -925,6 +925,7 @@ pub fn updateMeshes(targetTime: i64) void {
|
|||||||
mesh.needsMeshUpdate = false;
|
mesh.needsMeshUpdate = false;
|
||||||
if(getNodePointer(mesh.pos).mesh != mesh) {
|
if(getNodePointer(mesh.pos).mesh != mesh) {
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
defer mutex.lock();
|
||||||
mesh.decreaseRefCount();
|
mesh.decreaseRefCount();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user