Follow-up Comment #17, bug #18776 (project freeciv):

> Are player indexes updated for existing players, after one from
> the middle is removed?
player_index() calls player_number() which calls player_slot_index(); thus,
the index of a player does not change if one is removed. Furthermore,
player_iterate (it's around the lines you posted) does iterate over _used_
player indices. In your case you could check the value of p (=player index())
before the crash.

One possibility: could you compare the value of player->pslot->player ==
player before creating the savegame (in  player_iterate)? If player->pslot ==
NULL but pslot->player is set it could be the reason for the crash. But what
did I do differently?


Reply to this item at:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to