aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-19 17:51:19 +0100
committergingerBill <bill@gingerbill.org>2021-08-19 17:51:19 +0100
commitfa4f3aa7ad3f9530f78f22bd8d0e00d168ab2509 (patch)
treea5970ee21bd91b5a8a409e0e62f92ca94ec57a9c /src/entity.cpp
parenta90fe7211c226ab6dd7580ec2323758a98214bf7 (diff)
Correct atomic usage
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index a916f3099..02b5f4a75 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -250,7 +250,7 @@ bool entity_has_deferred_procedure(Entity *e) {
}
-gb_global std::atomic<u64> global_entity_id = 0;
+gb_global std::atomic<u64> global_entity_id;
Entity *alloc_entity(EntityKind kind, Scope *scope, Token token, Type *type) {
gbAllocator a = permanent_allocator();