From 98054cdff9465b70fdb71670f3217d2347a5e1be Mon Sep 17 00:00:00 2001 From: FutureRave Date: Thu, 4 May 2023 18:25:33 +0100 Subject: [PATCH] maint(fast_critical_section): improve --- src/game/engine/fast_critical_section.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/engine/fast_critical_section.cpp b/src/game/engine/fast_critical_section.cpp index bb323b4..8ef197b 100644 --- a/src/game/engine/fast_critical_section.cpp +++ b/src/game/engine/fast_critical_section.cpp @@ -6,8 +6,8 @@ namespace game::engine { fast_critical_section_scope_read::fast_critical_section_scope_read(native::FastCriticalSection* cs) + : cs_(cs) { - this->cs_ = cs; if (this->cs_) { native::Sys_LockRead(this->cs_); @@ -23,8 +23,8 @@ namespace game::engine } fast_critical_section_scope_write::fast_critical_section_scope_write(native::FastCriticalSection* cs) + : cs_(cs) { - this->cs_ = cs; if (this->cs_) { native::Sys_LockWrite(this->cs_);