aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-11 15:34:34 +0100
committergingerBill <bill@gingerbill.org>2024-04-11 15:34:34 +0100
commit45d7a670ce689b5be046e023102871566cac9b7b (patch)
treeb98e1d5f3b26b63ed49a20746bc0d04eccf597a7 /src
parent86e82dc18299922ff782e734888ab729e8247fd7 (diff)
Fix `@(static)` error message bug
Diffstat (limited to 'src')
-rw-r--r--src/entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 6cea0930f..a12e1d0a6 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -496,7 +496,7 @@ gb_internal bool is_entity_local_variable(Entity *e) {
if (e->scope == nullptr) {
return true;
}
- if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue)) {
+ if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue|EntityFlag_Static)) {
return false;
}