Commit f129051
committed
Remove the IsBeingDeleted guard that skipped spatial database cleanup in ~CClientEntity, leaving dangling pointers in the R-tree when entities were freed between resource stop iterations. Also reorder the IsBeingDeleted check in the GetElementsWithinRange lambda to filter zombie entities before accessing their members.
1 parent 3b8f42a commit f129051
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
| 149 | + | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
983 | 986 | | |
984 | 987 | | |
985 | 988 | | |
| |||
995 | 998 | | |
996 | 999 | | |
997 | 1000 | | |
998 | | - | |
| 1001 | + | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
| |||
0 commit comments