Commit cdfc27a
committed
Fix: segfault when reading NON_PM empty tin
This is yet another bug due to the failure to realize NON_PM is -1, not
0. Apparently this segfault would only happen when there is a NON_PM tin
which is not spinach, which I initially considered to be an impossible
case, but which turns out is actually possible when tin creation gives
up trying to pick a monster. There is handling for opening and
identifying such "empty" tins, so the "truthful" style of tin label will
now also handle it properly.1 parent 3e1fe5a commit cdfc27a
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
302 | 308 | | |
303 | 309 | | |
304 | 310 | | |
| |||
0 commit comments