diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2019-10-20 21:31:21 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2020-02-11 12:04:41 +0100 |
commit | e38ae8d7e4407722e1b8d2b7caf49052f2f9174b (patch) | |
tree | a873a70b693f541fd835111fcda6bffcbc08bdf0 /modules/gridmap/grid_map.cpp | |
parent | a8e14bee58ea3a7404eabc3687cb11ef778497a3 (diff) |
Fix bugs in `RID_Alloc`
- Replace unintended `%` with `&`
- `get_owned_list()`: make thread-safe and fix logic
- Apply same logic fix to the destructor
Previously, the determination of owned RIDs was wrong. For instance, it could skip owned items or include duplicates in the list.
Avoids the engine crashing at exit.
Diffstat (limited to 'modules/gridmap/grid_map.cpp')
0 files changed, 0 insertions, 0 deletions