Commit 98e59d5
Fix standalone web UI crash when polling player data before ship selection
playerGet() indexed Ship_info with ship_class without bounds checking.
Before ship selection, ship_class is -1, which as an unsigned index
causes an out-of-bounds access. Add the same bounds check that the
Windows standalone GUI already has.
Fixes #7366
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 18fd870 commit 98e59d5
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
461 | 465 | | |
462 | 466 | | |
463 | 467 | | |
| |||
0 commit comments