Jonas 99f4a925a1 Fix defensive bounds checks found in review: plate indexing, war/diplomacy load, map zoom reset
- PlanetDrift.cpp: guard cells[i].plateId before indexing plates[] in advect(),
  matching the bounds-checking convention used elsewhere in plate lifecycle code.
- Panels.cpp: same guard in cellInfo() for the cell-info panel's plate lookup.
- PlanetIO.cpp: range-check War.attacker/.defender and DiploTie.a/.b against
  settlements.size() on load, matching the validation already done for
  sSettleAllegiance.
- Viewer.cpp: reset mapZoom/mapPanX/mapPanY in regenWorld() so a zoomed 2D map
  doesn't strand the view on reseed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-02 19:03:52 +02:00
2026-07-01 13:36:41 +02:00
Description
No description provided
3.8 MiB
Languages
C++ 99.6%
CMake 0.4%