diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-11 15:34:34 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-11 15:34:34 +0100 |
| commit | 45d7a670ce689b5be046e023102871566cac9b7b (patch) | |
| tree | b98e1d5f3b26b63ed49a20746bc0d04eccf597a7 /src/entity.cpp | |
| parent | 86e82dc18299922ff782e734888ab729e8247fd7 (diff) | |
Fix `@(static)` error message bug
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 2 |
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; } |