Skip to content

Commit 845a25a

Browse files
authored
Update 2024-02-29-creating-the-perfect-modding-language.md
1 parent 2b7b5e4 commit 845a25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2024-02-29-creating-the-perfect-modding-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ on_foo() {
132132
}
133133
```
134134

135-
This means a game function like <span style="color:#C792EA">`list_add`</span> will need to make a copy of the `entity` it was passed, as the `entity` gets freed at the end of the <span style="color:#C3E88D">`on_tick`</span> function. If it didn't make a copy, the <span style="color:#C792EA">`print_list`</span> game function call would try to print a freed entity:
135+
This means that a game function like <span style="color:#C792EA">`list_add`</span> will need to make a copy of the `entity` it was passed, as the `entity` gets freed at the end of the <span style="color:#C3E88D">`on_tick`</span> function. If it didn't make a copy, the <span style="color:#C792EA">`print_list`</span> game function call would try to print a freed entity:
136136

137137
```grug
138138
entities: id = list()

0 commit comments

Comments
 (0)