Repository navigation
Commit da1def8
committed
Fix invalid iterator dereference in MaterialManager debug log
This fixes a crash-prone debug printout in MaterialManager::getDensity.
- With O2SIM_MATMGR_LOCALDENSITY_DEBUG set and a global density factor other than 1, the log line read iter->second from an end() iterator.
- The line now prints the global factor that is actually applied.1 parent c419989 commit da1def8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments