aboutsummaryrefslogtreecommitdiff
path: root/src/universe.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/universe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/universe.h b/src/universe.h
index a31e6c2..1079915 100644
--- a/src/universe.h
+++ b/src/universe.h
@@ -83,9 +83,9 @@ class ProtectedAllocator : public AllocatorDefinition
83 83
84 static void* protected_lua_Alloc(void* ud_, void* ptr_, size_t osize_, size_t nsize_) 84 static void* protected_lua_Alloc(void* ud_, void* ptr_, size_t osize_, size_t nsize_)
85 { 85 {
86 ProtectedAllocator* const s{ static_cast<ProtectedAllocator*>(ud_) }; 86 ProtectedAllocator* const allocator{ static_cast<ProtectedAllocator*>(ud_) };
87 std::lock_guard<std::mutex> guard{ s->m_lock }; 87 std::lock_guard<std::mutex> guard{ allocator->m_lock };
88 return s->m_allocF(s->m_allocUD, ptr_, osize_, nsize_); 88 return allocator->m_allocF(allocator->m_allocUD, ptr_, osize_, nsize_);
89 } 89 }
90 90
91 public: 91 public: