This commit is contained in:
Axel Kohlmeyer
2023-03-25 06:06:58 -04:00
parent 529e81e142
commit 19df5ff811

View File

@ -115,7 +115,7 @@ void ComputeChunk::lock_enable()
void ComputeChunk::lock_disable()
{
cchunk = dynamic_cast<ComputeChunkAtom *>(modify->get_compute_by_id(idchunk));
if (!cchunk) cchunk->lockcount--;
if (cchunk) cchunk->lockcount--;
}
/* ----------------------------------------------------------------------