Commit 30e69a3
fix: resolve ImGui ID collisions in salvage popup and settings
- In the "Salvage All?" popup, use loop index `i` as PushID instead of
`item_id` (cast from uint32_t to int) to guarantee uniqueness.
- In the "block_from_being_salvaged" settings list, use a sequential
counter instead of the display name string, which could be empty or
shared between items before EncString decoding completes.
Fixes #2225
Co-authored-by: Marc <henderkes@users.noreply.github.com>1 parent 2e9e5a6 commit 30e69a3
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| 1345 | + | |
1345 | 1346 | | |
1346 | | - | |
| 1347 | + | |
1347 | 1348 | | |
1348 | 1349 | | |
1349 | 1350 | | |
| |||
2272 | 2273 | | |
2273 | 2274 | | |
2274 | 2275 | | |
2275 | | - | |
| 2276 | + | |
2276 | 2277 | | |
2277 | 2278 | | |
2278 | 2279 | | |
| |||
0 commit comments