Browse Source

Fix atomics for tuples

gingerBill 2 months ago
parent
commit
accdd7c2af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/types.cpp

+ 1 - 1
src/types.cpp

@@ -255,7 +255,7 @@ struct TypeProc {
 		Slice<Entity *> variables; /* Entity_Variable */  \
 		i64 *           offsets;                          \
 		BlockingMutex   mutex; /* for settings offsets */ \
-		bool            are_offsets_being_processed;      \
+		std::atomic<bool> are_offsets_being_processed;    \
 		bool            are_offsets_set;                  \
 		bool            is_packed;                        \
 	})                                                        \