kikotheexile / Endless-Sky-Civil-War

A stand alone, content driven Endless Sky fork.
22 stars 17 forks source link

Fix FleetSummary crash when player has no ships #165

Closed lukearndt closed 3 years ago

lukearndt commented 3 years ago

Context

The game crashed when a player opened the Player Info Panel (I) without any ships. This typically happened if someone exited the shipyard at the start of the game without buying anything, then tried to view their logbook.

Changes

This commit prevents the game from crashing when viewing the Player Info Panel without any ships. The easiest fix was to not show the Fleet Summary if the player doesn't have a fleet.

kikotheexile commented 3 years ago

it may not seem like it to most people, but this is a major stability fix. I thank you greatly.