diff --git a/src/player/player.cpp b/src/player/player.cpp index 6f67a0570..9ec581e9c 100644 --- a/src/player/player.cpp +++ b/src/player/player.cpp @@ -2802,7 +2802,7 @@ void CPlayer::Clear() { this->name.clear(); this->set_type(player_type::none); - this->Race = defines::get()->get_neutral_civilization()->ID; + this->Race = defines::get()->get_neutral_civilization() ? defines::get()->get_neutral_civilization()->ID : 0; this->faction = nullptr; this->faction_tier = faction_tier::none; this->government_type = government_type::none;